Skip to content

Commit

Permalink
fix(power-assert): fix README test
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Sep 1, 2019
1 parent 8252e2d commit e6af70e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/power-assert/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ Install with [npm](https://www.npmjs.com/):
### Node Modules

```js
const { testContent } = require("power-doctest");
testContent({
const { runPowerDoctest } = require("power-doctest");
runPowerDoctest({
content: "1; // => 2",
contentType: "javascript",
filePath: "test.js",
disableRunning: true
disableRunning: false
}).then(results => {
console.log(results[0].status); // => "rejected"
});
Expand Down
4 changes: 3 additions & 1 deletion packages/power-assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
"clean": "rimraf lib/",
"prettier": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
"prepublish": "npm run --if-present build",
"test": "mocha \"test/**/*.ts\"",
"test": "npm run test:unit && npm run test:readme",
"test:unit": "mocha \"test/**/*.ts\"",
"test:readme": "npm run build && ./bin/cmd.js README.md",
"watch": "tsc -p . --watch"
},
"prettier": {
Expand Down

0 comments on commit e6af70e

Please sign in to comment.