aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEllison <ellisonleao@gmail.com>2023-03-19 16:46:57 -0300
committerGitHub <noreply@github.com>2023-03-19 16:46:57 -0300
commit035f8a35d7e08833e75720feeff11f3461c80903 (patch)
tree901855cd958436592e8f41fc8ae2f005930096b5 /tests
parentc6ef9c5a3a2ece0f8635460291eb4a4c06ed3dcc (diff)
downloadgruvbox-035f8a35d7e08833e75720feeff11f3461c80903.tar.gz
gruvbox-035f8a35d7e08833e75720feeff11f3461c80903.tar.xz
New Italic configs (#222)
* feat(config): adding new italic config * using direct highlight call in vim.cmd * adding changelog releaser
Diffstat (limited to 'tests')
-rw-r--r--tests/gruvbox/gruvbox_spec.lua22
1 files changed, 19 insertions, 3 deletions
diff --git a/tests/gruvbox/gruvbox_spec.lua b/tests/gruvbox/gruvbox_spec.lua
index ed96742..7ed3cd5 100644
--- a/tests/gruvbox/gruvbox_spec.lua
+++ b/tests/gruvbox/gruvbox_spec.lua
@@ -1,14 +1,25 @@
require("plenary.reload").reload_module("gruvbox", true)
local gruvbox = require("gruvbox")
+local default = gruvbox.config
describe("setup", function()
it("works with default values", function()
+ gruvbox.setup()
+ assert.are.same(gruvbox.config, default)
+ end)
+
+ it("works with old italic values", function()
local expected = {
undercurl = true,
underline = true,
bold = true,
strikethrough = true,
- italic = true,
+ italic = {
+ strings = true,
+ comments = true,
+ operators = false,
+ folds = true,
+ },
inverse = true,
invert_selection = false,
invert_signs = false,
@@ -21,7 +32,7 @@ describe("setup", function()
transparent_mode = false,
}
- gruvbox.setup()
+ gruvbox.setup({ italic = true })
assert.are.same(gruvbox.config, expected)
end)
@@ -30,8 +41,13 @@ describe("setup", function()
undercurl = false,
underline = false,
bold = true,
+ italic = {
+ strings = true,
+ comments = true,
+ operators = false,
+ folds = true,
+ },
strikethrough = true,
- italic = true,
inverse = true,
invert_selection = false,
invert_signs = false,