From 376209daccabebba30a0593381a82b04d8553782 Mon Sep 17 00:00:00 2001 From: Lukas Reineke Date: Fri, 15 Sep 2023 15:59:26 +0900 Subject: [PATCH] fix tests --- specs/features/utils_spec.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specs/features/utils_spec.lua b/specs/features/utils_spec.lua index 523b0640..3544f247 100644 --- a/specs/features/utils_spec.lua +++ b/specs/features/utils_spec.lua @@ -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 = " ", @@ -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 = ">", @@ -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 = "^", @@ -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 = "󱢗",