aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2014-10-27 16:48:54 +0000
committerStephen Blott2014-10-27 16:48:54 +0000
commitd2f8e72f7211da1957875a160782c06ecd47d3e4 (patch)
treebc08e592582c45cb5d1ad2ed6a6edbeaa13714ed
parent7765ff4f60a001238a734588786d7ea33edc2e3e (diff)
downloadvimium-d2f8e72f7211da1957875a160782c06ecd47d3e4.tar.bz2
Validate each advanced command is in a command group.
-rw-r--r--tests/unit_tests/commands_test.coffee5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit_tests/commands_test.coffee b/tests/unit_tests/commands_test.coffee
index a739884c..6172d285 100644
--- a/tests/unit_tests/commands_test.coffee
+++ b/tests/unit_tests/commands_test.coffee
@@ -33,6 +33,11 @@ context "Validate commands and options",
assert.equal 'string', typeof command
assert.isTrue Commands.availableCommands[command]
+ should "have each advanced command listed in a command group", ->
+ allCommands = [].concat.apply [], (commands for group, commands of Commands.commandGroups)
+ for command in Commands.advancedCommands
+ assert.isTrue 0 <= allCommands.indexOf command
+
should "have valid commands for each default key mapping", ->
count = Object.keys(Commands.keyToCommandRegistry).length
assert.isTrue (0 < count)