Skip to content

Commit

Permalink
fix: add power-assert to deps
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 14, 2016
1 parent d3e4f68 commit c165003
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ $ egg-bin debug

Using [mocha] with [thunk-mocha] to run test.

[power-assert] is recommend to used as `assert` library, and [intelli-espower-loader] will be auotoload.
[power-assert] is the default `assert` library, and [intelli-espower-loader] will be auto required.

You can set `TESTS` env to set the tests directory, it support [glob] grammar.

Expand Down Expand Up @@ -197,4 +197,4 @@ run nsp check at /foo/bar with []
[nsp]: https://npmjs.com/thunk-mocha
[iron-node]: https://github.com/s-a/iron-node
[intelli-espower-loader]: https://github.com/power-assert-js/intelli-espower-loader
[power-assert]: https://github.com/power-assert-js/power-assert
[power-assert]: https://github.com/power-assert-js/power-assert
3 changes: 2 additions & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ $ egg-bin debug

测试工具,使用 [mocha],支持 [thunk-mocha] 扩展。

内置了 [intelli-espower-loader] 并推荐使用 [power-assert] 作为断言库, 具体参见 https://github.com/atian25/blog/issues/16
内置了 [intelli-espower-loader] 并使用 [power-assert] 作为断言库,具体参见 https://github.com/atian25/blog/issues/16
在测试代码中只需要 `require('assert')` 即可享受 [power-assert] 带来的体验提升。

可通过 `TESTS` 环境变量指定具体文件,支持 [glob]

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"istanbul": "^0.4.5",
"mkdirp": "^0.5.1",
"mocha": "^3.2.0",
"power-assert": "^1.4.2",
"rimraf": "^2.5.4",
"semver": "^5.3.0",
"thunk-mocha": "^1.0.8"
Expand All @@ -28,8 +29,7 @@
"egg-ci": "^1.1.0",
"eslint": "^3.12.1",
"eslint-config-egg": "^3.2.0",
"mm": "^2.0.0",
"power-assert": "^1.4.2"
"mm": "^2.0.0"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion test/egg-cov.test.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 assert = require('power-assert');
const assert = require('assert');
const coffee = require('coffee');
const mm = require('mm');

Expand Down
4 changes: 2 additions & 2 deletions test/egg-test.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const path = require('path');
const assert = require('power-assert');
const assert = require('assert');
const coffee = require('coffee');
const mm = require('mm');

Expand All @@ -20,7 +20,7 @@ describe('egg-bin test', () => {
.expect('code', 0)
.end((err, res) => {
assert.ifError(err);
assert.ok(!/a\.js/.test(res.stdout));
assert(!/a\.js/.test(res.stdout));
done();
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/my-egg-bin.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const path = require('path');
const assert = require('power-assert');
const assert = require('assert');
const coffee = require('coffee');
const mm = require('mm');

Expand Down

0 comments on commit c165003

Please sign in to comment.