mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
22 lines
439 B
JavaScript
22 lines
439 B
JavaScript
import test from 'supertape';
|
|
|
|
import {getDOM} from './globals.fixture.js';
|
|
|
|
global.DOM = getDOM();
|
|
|
|
import {_next, _previous} from './find.js';
|
|
|
|
test('cloudcmd: client: vim: _next', (t) => {
|
|
const result = _next(1, 2);
|
|
|
|
t.notOk(result, 'should return 0');
|
|
t.end();
|
|
});
|
|
|
|
test('cloudcmd: client: vim: _previous', (t) => {
|
|
const result = _previous(0, 2);
|
|
|
|
t.equal(result, 1, 'should return 1');
|
|
t.end();
|
|
});
|
|
|