aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authormrmr19932017-10-28 17:04:37 +0100
committermrmr19932017-10-28 17:04:37 +0100
commitf65720e58e31a0218e0c176a9140520451e5dd7d (patch)
tree0407fe8896233840478dae448fded55bd043ad0c /tests
parent5c4aab3d4488e5d8d64aba122791f86fc9766b99 (diff)
downloadvimium-f65720e58e31a0218e0c176a9140520451e5dd7d.tar.bz2
Remove invokeCommandString, call NormalModeCommands directly
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/utils_test.coffee20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/unit_tests/utils_test.coffee b/tests/unit_tests/utils_test.coffee
index cc1081dd..2794a6d7 100644
--- a/tests/unit_tests/utils_test.coffee
+++ b/tests/unit_tests/utils_test.coffee
@@ -138,26 +138,6 @@ context "distinctCharacters",
should "eliminate duplicate characters", ->
assert.equal "abc", Utils.distinctCharacters "bbabaabbacabbbab"
-context "invokeCommandString",
- setup ->
- @beenCalled = false
- window.singleComponentCommand = => @beenCalled = true
- window.twoComponentCommand = command: window.singleComponentCommand
-
- tearDown ->
- delete window.singleComponentCommand
- delete window.twoComponentCommand
-
- should "invoke single-component commands", ->
- assert.isFalse @beenCalled
- Utils.invokeCommandString "singleComponentCommand"
- assert.isTrue @beenCalled
-
- should "invoke multi-component commands", ->
- assert.isFalse @beenCalled
- Utils.invokeCommandString "twoComponentCommand.command"
- assert.isTrue @beenCalled
-
context "escapeRegexSpecialCharacters",
should "escape regexp special characters", ->
str = "-[]/{}()*+?.^$|"