MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / test

Function test

lib/web/CodeMirror/test/vim_test.js:1165–1169  ·  view source on GitHub ↗
(key, mode)

Source from the content-addressed store, hash-verified

1163 helpers.doKeys('<Esc>', '<Esc>');
1164 cm.on('vim-mode-change', callback);
1165 function test(key, mode) {
1166 modeHist.length = 0;
1167 helpers.doKeys(key);
1168 eq(modeHist.join(';'), mode);
1169 }
1170 test('v', 'visual');
1171 test('c', 'insert');
1172 test('<Esc>', 'normal');

Callers 2

testVimFunction · 0.70
vim_test.jsFile · 0.70

Calls 1

eqFunction · 0.85

Tested by

no test coverage detected