Skip to content

Commit

Permalink
test: remove power-assert (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored Feb 21, 2023
1 parent fb0f00d commit f14bc76
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 15 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"scripts": {
"contributor": "git-contributor",
"ts-test": "tsc -p ./test/fixtures/types/tsconfig.json",
"test": "egg-bin test && npm run ts-test",
"cov": "egg-bin cov",
"test": "egg-bin test --espower=false --full-trace && npm run ts-test",
"cov": "egg-bin cov --espower=false",
"lint-fix": "eslint . --fix",
"lint": "eslint .",
"ci": "npm run lint && npm run ts-test && npm run cov"
Expand Down Expand Up @@ -53,13 +53,12 @@
"@types/mocha": "^5.2.5",
"@types/node": "^10.12.9",
"dir-compare": "^1.3.0",
"egg-bin": "^1.9.1",
"egg-bin": "4",
"eslint": "^3.10.2",
"eslint-config-egg": "^3.2.0",
"git-contributor": "^1.1.0",
"mm": "^2.0.0",
"mz-modules": "^2.1.0",
"power-assert": "^1.4.2",
"rimraf": "^2.6.2",
"typescript": "^3.1.6",
"uuid": "^3.0.1"
Expand Down
2 changes: 1 addition & 1 deletion test/gzip/file_stream.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const path = require('path');
const uuid = require('uuid');
const pump = require('pump');
const compressing = require('../..');
const assert = require('power-assert');
const assert = require('assert');

describe('test/gzip/file_stream.test.js', () => {
it('should be a transform stream', done => {
Expand Down
2 changes: 1 addition & 1 deletion test/gzip/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const os = require('os');
const path = require('path');
const uuid = require('uuid');
const compressing = require('../..');
const assert = require('power-assert');
const assert = require('assert');

describe('test/gzip/index.test.js', () => {
describe('gzip.compressFile()', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/tar/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const os = require('os');
const path = require('path');
const uuid = require('uuid');
const compressing = require('../..');
const assert = require('power-assert');
const assert = require('assert');
const dircompare = require('dir-compare');
const mkdirp = require('mz-modules/mkdirp');

Expand Down
2 changes: 1 addition & 1 deletion test/tar/stream.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const path = require('path');
const uuid = require('uuid');
const pump = require('pump');
const compressing = require('../..');
const assert = require('power-assert');
const assert = require('assert');
const TarStream = compressing.tar.Stream;


Expand Down
2 changes: 1 addition & 1 deletion test/tgz/file_stream.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const path = require('path');
const uuid = require('uuid');
const pump = require('pump');
const compressing = require('../..');
const assert = require('power-assert');
const assert = require('assert');

describe('test/tgz/file_stream.test.js', () => {
it('tgz.FileStream', done => {
Expand Down
2 changes: 1 addition & 1 deletion test/tgz/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const os = require('os');
const path = require('path');
const uuid = require('uuid');
const compressing = require('../..');
const assert = require('power-assert');
const assert = require('assert');
const dircompare = require('dir-compare');
const mkdirp = require('mz-modules/mkdirp');

Expand Down
2 changes: 1 addition & 1 deletion test/tgz/stream.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const path = require('path');
const uuid = require('uuid');
const pump = require('pump');
const compressing = require('../..');
const assert = require('power-assert');
const assert = require('assert');
const TgzStream = compressing.tgz.Stream;


Expand Down
2 changes: 1 addition & 1 deletion test/zip/file_stream.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const path = require('path');
const uuid = require('uuid');
const pump = require('pump');
const compressing = require('../..');
const assert = require('power-assert');
const assert = require('assert');

describe.skip('test/zip/file_stream.test.js', () => {
it('zip.FileStream', done => {
Expand Down
4 changes: 2 additions & 2 deletions test/zip/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const uuid = require('uuid');
const rimraf = require('rimraf');
const mkdirp = require('mkdirp');
const compressing = require('../..');
const assert = require('power-assert');
const assert = require('assert');
const dircompare = require('dir-compare');

describe('test/zip/index.test.js', () => {
Expand Down Expand Up @@ -276,7 +276,7 @@ describe('test/zip/index.test.js', () => {
assert(fs.existsSync(destFile));

destDir = path.join(os.tmpdir(), uuid.v4());
yield mkdirp(destDir);
mkdirp.sync(destDir);
yield compressing.zip.uncompress(destFile, destDir);
const stat = fs.statSync(path.join(destDir, 'bin'));
assert(stat.mode === originStat.mode);
Expand Down
2 changes: 1 addition & 1 deletion test/zip/stream.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const path = require('path');
const uuid = require('uuid');
const pump = require('pump');
const compressing = require('../..');
const assert = require('power-assert');
const assert = require('assert');
const ZipStream = compressing.zip.Stream;

describe('test/zip/stream.test.js', () => {
Expand Down

0 comments on commit f14bc76

Please sign in to comment.