Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-reineke committed Sep 15, 2023
1 parent 2071829 commit 376209d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions specs/features/utils_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("get_listchars", function()
end)

it("returns fallback listchars if list is off", function()
assert.are.same(utils.get_listchars(), {
assert.are.same(utils.get_listchars(0), {
tabstop_overwrite = false,
space_char = " ",
tab_char_fill = " ",
Expand All @@ -19,7 +19,7 @@ describe("get_listchars", function()

it("returns default listchars", function()
vim.opt.list = true
assert.are.same(utils.get_listchars(), {
assert.are.same(utils.get_listchars(0), {
tabstop_overwrite = false,
space_char = " ",
tab_char_start = ">",
Expand All @@ -31,7 +31,7 @@ describe("get_listchars", function()
it("sets tabstop_overwrite to true when there is are tab chars", function()
vim.opt.list = true
vim.opt.listchars = {}
assert.are.same(utils.get_listchars(), {
assert.are.same(utils.get_listchars(0), {
tabstop_overwrite = true,
space_char = " ",
tab_char_start = "^",
Expand All @@ -42,7 +42,7 @@ describe("get_listchars", function()
it("splits utf-8 chars correctly", function()
vim.opt.list = true
vim.opt.listchars = { tab = "󱢗󰗲" }
assert.are.same(utils.get_listchars(), {
assert.are.same(utils.get_listchars(0), {
tabstop_overwrite = false,
space_char = " ",
tab_char_start = "󱢗",
Expand Down

0 comments on commit 376209d

Please sign in to comment.