Skip to content

Commit 5473642

Browse files
committed
[WIP] Use power-assert on non-testing code with ts-node
1 parent f940e40 commit 5473642

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ npm install
1111
## Usage
1212

1313
``` sh
14+
npm start
1415
npm test
1516
```
1617

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
"description": "Example project of power-assert in TypeScript and Node.js",
55
"main": "src/index.ts",
66
"scripts": {
7+
"start": "ts-node --require espower-typescript/guess src/index.ts",
78
"test": "mocha --require espower-typescript/guess \"test/**/*.ts\""
89
},
910
"directories": {
10-
"test": "test/"
11+
"test": "src/"
1112
},
1213
"repository": {
1314
"type": "git",

Diff for: src/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import assert = require('assert')
2+
3+
assert(['a','b','c'].join(':') === 'a:b:c:')

0 commit comments

Comments
 (0)