Skip to content

Commit

Permalink
feature(package) tape -> supertape
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Jan 13, 2019
1 parent 64bf568 commit 74d56f7
Show file tree
Hide file tree
Showing 44 changed files with 47 additions and 55 deletions.
2 changes: 1 addition & 1 deletion client/dom/current-file.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const {create} = require('auto-globals');
const stub = require('@cloudcmd/stub');
const id = (a) => a;
Expand Down
2 changes: 1 addition & 1 deletion client/dom/dom-tree.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const {create} = require('auto-globals');
const tryCatch = require('try-catch');

Expand Down
2 changes: 1 addition & 1 deletion client/dom/events/event-store.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const eventStore = require('./event-store');

test('event-store: get', (t) => {
Expand Down
2 changes: 1 addition & 1 deletion client/key/vim/find.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const stub = require('@cloudcmd/stub');
const dir = './';

Expand Down
2 changes: 1 addition & 1 deletion client/key/vim/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const {join} = require('path');

const test = require('tape');
const test = require('supertape');
const stub = require('@cloudcmd/stub');
const mockRequire = require('mock-require');
const {reRequire} = mockRequire;
Expand Down
2 changes: 1 addition & 1 deletion client/modules/polyfill.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use stric';

const test = require('tape');
const test = require('supertape');
const mockRequire = require('mock-require');
const stub = require('@cloudcmd/stub');

Expand Down
5 changes: 2 additions & 3 deletions client/sw/register.spec.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
'use strict';

const tryTo = require('try-to-tape');
const autoGlobals = require('auto-globals');
const tape = require('tape');
const tape = require('supertape');

const test = autoGlobals(tryTo(tape));
const test = autoGlobals(tape);

const stub = require('@cloudcmd/stub');
const tryCatch = require('try-catch');
Expand Down
2 changes: 1 addition & 1 deletion common/cloudfunc.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const cloudfunc = require('./cloudfunc');
const {
_getSize,
Expand Down
2 changes: 1 addition & 1 deletion common/datetime.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const datetime = require('./datetime');

test('common: datetime', (t) => {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,8 @@
"stylelint": "^9.0.0",
"stylelint-config-standard": "^18.0.0",
"supermenu": "^2.1.2",
"tape": "^4.4.0",
"supertape": "^1.0.3",
"tar-stream": "^1.5.2",
"try-to-tape": "^1.0.0",
"unionfs": "^3.0.2",
"url-loader": "^1.0.1",
"version-io": "^2.0.1",
Expand Down
2 changes: 1 addition & 1 deletion server/cloudcmd.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const path = require('path');

const test = require('tape');
const test = require('supertape');
const stub = require('@cloudcmd/stub');
const currify = require('currify');
const {reRequire} = require('mock-require');
Expand Down
2 changes: 1 addition & 1 deletion server/config.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const stub = require('@cloudcmd/stub');

const root = '../';
Expand Down
2 changes: 1 addition & 1 deletion server/distribute/export.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const io = require('socket.io-client');

const {connect} = require('../../test/before');
Expand Down
2 changes: 1 addition & 1 deletion server/distribute/import.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const {promisify} = require('util');
const tryToCatch = require('try-to-catch');
const {connect} = require('../../test/before');
Expand Down
2 changes: 1 addition & 1 deletion server/distribute/log.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const log = require('./log');
const config = require('../config');

Expand Down
2 changes: 1 addition & 1 deletion server/exit.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const exit = require('./exit');
const stub = require('@cloudcmd/stub');

Expand Down
2 changes: 1 addition & 1 deletion server/markdown.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const fs = require('fs');
const path = require('path');
const test = require('tape');
const test = require('supertape');
const {promisify} = require('util');

const tryToCatch = require('try-to-catch');
Expand Down
2 changes: 1 addition & 1 deletion server/rest/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const rest = require('.');
const {
_formatMsg,
Expand Down
2 changes: 1 addition & 1 deletion server/rest/info.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const info = require('./info');
const stub = require('@cloudcmd/stub');

Expand Down
2 changes: 1 addition & 1 deletion server/root.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const stub = require('@cloudcmd/stub');
const mockRequire = require('mock-require');
const {reRequire} = mockRequire;
Expand Down
3 changes: 1 addition & 2 deletions server/route.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ const path = require('path');
const fs = require('fs');

const tryToCatch = require('try-to-catch');
const tryToTape = require('try-to-tape');
const test = tryToTape(require('tape'));
const test = require('supertape');
const mockRequire = require('mock-require');
const {reRequire} = mockRequire;

Expand Down
2 changes: 1 addition & 1 deletion server/validate.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const fs = require('fs');

const test = require('tape');
const test = require('supertape');
const stub = require('@cloudcmd/stub');
const tryCatch = require('try-catch');
const mockRequire = require('mock-require');
Expand Down
2 changes: 1 addition & 1 deletion test/client/listeners/get-index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');

const dir = '../../../client/listeners';
const getIndex = require(`${dir}/get-index`);
Expand Down
2 changes: 1 addition & 1 deletion test/client/listeners/get-range.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');

const dir = '../../../client/listeners';
const getRange = require(`${dir}/get-range`);
Expand Down
6 changes: 3 additions & 3 deletions test/client/modules/operation/remove-extension.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const dir = '../../../../client/modules/operation';

const removeExtension = require(`${dir}/remove-extension`);
Expand All @@ -16,15 +16,15 @@ test('cloudcmd: client: modules: operation: removeExtension: .tar.gz', (t) => {
test('cloudcmd: client: modules: operation: removeExtension: .tar.bz2', (t) => {
const name = 'hello';
const fullName = `${name}.tar.bz2`;

t.equal(removeExtension(fullName), name, 'should remove .tar.bz2');
t.end();
});

test('cloudcmd: client: modules: operation: removeExtension: .bz2', (t) => {
const name = 'hello';
const fullName = `${name}.bz2`;

t.equal(removeExtension(fullName), name, 'should remove .bz2');
t.end();
});
Expand Down
2 changes: 1 addition & 1 deletion test/common/btoa.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const stub = require('@cloudcmd/stub');

const btoa = require('../../common/btoa');
Expand Down
2 changes: 1 addition & 1 deletion test/common/cloudfunc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const CloudFuncPath = COMMONDIR + 'cloudfunc';

const CloudFunc = require(CloudFuncPath);

const test = require('tape');
const test = require('supertape');
const {reRequire} = require('mock-require');

const htmlLooksLike = require('html-looks-like');
Expand Down
2 changes: 1 addition & 1 deletion test/common/entity.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const entity = require('../../common/entity');

test('cloudcmd: entity: encode', (t) => {
Expand Down
2 changes: 1 addition & 1 deletion test/common/util.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const {reRequire} = require('mock-require');
const DIR = '../../';
const UtilPath = DIR + 'common/util';
Expand Down
2 changes: 1 addition & 1 deletion test/plugins.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const fs = require('fs');
const test = require('tape');
const test = require('supertape');
const cloudcmd = require('..');

const config = {
Expand Down
2 changes: 1 addition & 1 deletion test/rest/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const path = require('path');
const os = require('os');

const test = require('tape');
const test = require('supertape');
const readjson = require('readjson');
const writejson = require('writejson');

Expand Down
2 changes: 1 addition & 1 deletion test/rest/cp.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const {mkdirSync} = require('fs');
const {join} = require('path');
const test = require('tape');
const test = require('supertape');
const rimraf = require('rimraf');

const fixtureDir = join(__dirname, '..', 'fixture') + '/';
Expand Down
3 changes: 1 addition & 2 deletions test/rest/fs.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

const tryToTape = require('try-to-tape');
const test = tryToTape(require('tape'));
const test = require('supertape');

const cloudcmd = require('../..');
const {request} = require('serve-once')(cloudcmd);
Expand Down
3 changes: 1 addition & 2 deletions test/rest/mv.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

const fs = require('fs');

const tryToTape = require('try-to-tape');
const test = tryToTape(require('tape'));
const test = require('supertape');
const {Volume} = require('memfs');
const {ufs} = require('unionfs');

Expand Down
3 changes: 1 addition & 2 deletions test/rest/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ const {join} = require('path');
const {promisify} = require('util');

const {reRequire} = require('mock-require');
const tryToTape = require('try-to-tape');
const test = tryToTape(require('tape'));
const test = require('supertape');
const tar = require('tar-stream');
const gunzip = require('gunzip-maybe');
const pullout = require('pullout');
Expand Down
2 changes: 1 addition & 1 deletion test/rest/rest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const rest = require('../../server/rest');

const {
Expand Down
2 changes: 1 addition & 1 deletion test/server/columns.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const fs = require('fs');
const {reRequire} = require('mock-require');
const columnsPath = '../../server/columns';
Expand Down
2 changes: 1 addition & 1 deletion test/server/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const path = require('path');

const test = require('tape');
const test = require('supertape');
const io = require('socket.io-client');

const configPath = path.join(__dirname, '../..', 'server', 'config');
Expand Down
2 changes: 1 addition & 1 deletion test/server/env.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const env = require('../../server/env');

test('env: small', (t) => {
Expand Down
3 changes: 1 addition & 2 deletions test/server/modulas.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
'use strict';

const {join} = require('path');
const tryTo = require('try-to-tape');
const test = tryTo(require('tape'));
const test = require('supertape');
const stub = require('@cloudcmd/stub');

const dir = join(__dirname, '..', '..');
Expand Down
2 changes: 1 addition & 1 deletion test/server/prefixer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');

const dir = '../../server/';
const prefixer = require(dir + 'prefixer');
Expand Down
2 changes: 1 addition & 1 deletion test/server/show-config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const showConfig = require('../../server/show-config');

test('cloudcmd: show-config: no arguments', (t) => {
Expand Down
2 changes: 1 addition & 1 deletion test/server/terminal.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const test = require('tape');
const test = require('supertape');
const stub = require('@cloudcmd/stub');

const mockRequire = require('mock-require');
Expand Down
3 changes: 1 addition & 2 deletions test/static.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

const tryTo = require('try-to-tape');
const test = tryTo(require('tape'));
const test = require('supertape');
const criton = require('criton');

const cloudcmd = require('..');
Expand Down

0 comments on commit 74d56f7

Please sign in to comment.