Skip to content

Commit

Permalink
help spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon McLean committed Sep 8, 2024
1 parent 2b38326 commit b5fc0b3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions tests/unit_tests/help_spec.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
local help = require 'triptych.help'
local assert = require 'luassert'
local framework = require 'tests.test_framework'
local it = framework.test
local describe = framework.describe

describe('help_lines', {
it('returns key bindings', function()
local result = help.help_lines()

assert.same({
'Triptych key bindings',
'',
'[-] : open_hsplit',
'[.] : jump_to_cwd',
'[<C-t>] : open_tab',
'[<leader>.] : toggle_hidden',
'[<leader>cd] : cd',
'[a] : add',
'[c] : copy',
'[d] : delete',
'[g?] : show_help',
'[h] : nav_left',
'[l, <CR>] : nav_right',
'[p] : paste',
'[q] : quit',
'[r] : rename',
'[x] : cut',
'[|] : open_vsplit',
}, result)
end)
})

0 comments on commit b5fc0b3

Please sign in to comment.