mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
81e76857da
commit
ef10ebe97c
40 changed files with 137 additions and 134 deletions
|
|
@ -5,11 +5,11 @@ const {
|
|||
stub,
|
||||
} = require('supertape');
|
||||
const {create} = require('auto-globals');
|
||||
const id = (a) => a;
|
||||
const wraptile = require('wraptile');
|
||||
const returns = wraptile(id);
|
||||
|
||||
const currentFile = require('./current-file');
|
||||
const id = (a) => a;
|
||||
|
||||
const returns = wraptile(id);
|
||||
const {_CURRENT_FILE} = currentFile;
|
||||
|
||||
test('current-file: setCurrentName: setAttribute', (t) => {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ test('event-store: get', (t) => {
|
|||
[el, name, fn],
|
||||
];
|
||||
|
||||
t.deepEqual(result, expected, 'should equal');
|
||||
t.deepEqual(result, expected);
|
||||
t.end();
|
||||
});
|
||||
|
||||
|
|
@ -29,6 +29,6 @@ test('event-store: clear', (t) => {
|
|||
const result = eventStore.get();
|
||||
const expected = [];
|
||||
|
||||
t.deepEqual(result, expected, 'should equal');
|
||||
t.deepEqual(result, expected);
|
||||
t.end();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -11,10 +11,10 @@ const {alert} = require('./dialog');
|
|||
|
||||
const {FS} = require('../../common/cloudfunc');
|
||||
|
||||
const onEnd = wraptile(_onEnd);
|
||||
const {getCurrentDirPath: getPathWhenRootEmpty} = require('.');
|
||||
const loadFile = wraptile(_loadFile);
|
||||
|
||||
const {getCurrentDirPath: getPathWhenRootEmpty} = require('.');
|
||||
const onEnd = wraptile(_onEnd);
|
||||
|
||||
module.exports = (dir, files) => {
|
||||
if (!files) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue