Skip to content

Commit

Permalink
fix: failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Feb 21, 2022
1 parent 49a161d commit 423dcc0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/config_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ describe("config", function()
it("merges nested options with g:aerial dict", function()
vim.g.aerial = {
float = {
row = 10,
border = "single",
},
}
assert.equals(config.float.row, 10)
assert.equals(config.float.col, 0)
assert.equals(config.float.border, "single")
assert.equals(config.float.max_height, 0.9)
end)

it("merges nested options with g:aerial_<name> vars", function()
vim.g.aerial_float_row = 10
assert.equals(config.float.row, 10)
vim.api.nvim_del_var("aerial_float_row")
vim.g.aerial_float_border = "single"
assert.equals(config.float.border, "single")
vim.api.nvim_del_var("aerial_float_border")
end)

-- Filetype maps
Expand Down

0 comments on commit 423dcc0

Please sign in to comment.