aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit_tests/commands_test.coffee
blob: 99e0e444b7bea9348dfb290104b9669c59967c7d (plain)
1
2
3
4
5
6
7
8
9
10
require "./test_helper.js"
{Commands} = require "../../background_scripts/commands.js"

context "Key mappings",
  should "lowercase keys correctly", ->
    assert.equal (Commands.normalizeKey '<c-a>'), '<c-a>'
    assert.equal (Commands.normalizeKey '<C-a>'), '<c-a>'
    assert.equal (Commands.normalizeKey '<C-A>'), '<c-A>'
    assert.equal (Commands.normalizeKey '<F12>'), '<f12>'
    assert.equal (Commands.normalizeKey '<C-F12>'), '<c-f12>'