-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(feat): add tests for reversed config map function
- Loading branch information
1 parent
6ee2a96
commit b9e41b9
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
describe("neogit config", function() | ||
describe("reversed status maps", function() | ||
it("can be reversed by copy", function() | ||
local config = require("neogit.config") | ||
config.get_reversed_status_maps() | ||
assert.True(config.values.mappings.status["s"] ~= nil) | ||
assert.True(config.values.mappings.status["Stage"] == nil) | ||
end) | ||
|
||
it("returns reversed status mappings", function () | ||
local config = require("neogit.config") | ||
local reversed_maps = config.get_reversed_status_maps() | ||
assert.True(reversed_maps["Stage"] ~= nil) | ||
assert.True(reversed_maps["Unstage"] ~= nil) | ||
assert.True(reversed_maps["CommitPopup"] ~= nil) | ||
end) | ||
end) | ||
end) |