test(vim) mv out from test

This commit is contained in:
coderaiser 2018-06-27 17:39:59 +03:00
parent 0732063e18
commit af4df5e64f
4 changed files with 8 additions and 7 deletions

View file

@ -1,5 +1,6 @@
.*
*.spec.js
*.fixture.js
manifest.yml
Dockerfile*
docker-compose.yml

View file

@ -3,11 +3,11 @@
const test = require('tape');
const diff = require('sinon-called-with-diff');
const sinon = diff(require('sinon'));
const dir = '../../../../client/key/vim/';
const dir = './';
const {
getDOM,
} = require('./globals');
} = require('./globals.fixture');
global.DOM = global.DOM || getDOM();
@ -28,7 +28,7 @@ test('cloudcmd: client: vim: find', (t) => {
find('');
t.ok(setCurrentByName.calledWith(), 'should call setCurrentByName');
t.ok(setCurrentByName.calledWith(null), 'should call setCurrentByName');
t.end();
});
@ -38,7 +38,7 @@ test('cloudcmd: client: vim: findNext', (t) => {
findNext();
t.ok(setCurrentByName.calledWith(), 'should call setCurrentByName');
t.ok(setCurrentByName.calledWith(null), 'should call setCurrentByName');
t.end();
});
@ -48,7 +48,7 @@ test('cloudcmd: client: vim: findPrevious', (t) => {
findPrevious();
t.ok(setCurrentByName.calledWith(), 'should call setCurrentByName');
t.ok(setCurrentByName.calledWith(null), 'should call setCurrentByName');
t.end();
});

View file

@ -3,13 +3,13 @@
const test = require('tape');
const diff = require('sinon-called-with-diff');
const sinon = diff(require('sinon'));
const dir = '../../../../client/key/';
const dir = '../';
const KEY = require(dir + 'key');
const {
getDOM,
getCloudCmd,
} = require('./globals');
} = require('./globals.fixture');
global.DOM = global.DOM || getDOM();
global.CloudCmd = global.CloudCmd || getCloudCmd();