Skip to content

Commit 03f5c11

Browse files
committed
chore(package): update deps to support TypeScript 2.0
1 parent 3a47d72 commit 03f5c11

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "power-assert instrumentor for TypeScript",
55
"main": "index.js",
66
"scripts": {
7+
"demo": "mocha --require './guess' test/demo.ts",
78
"test:outdir": "cd test/test-outdir && mocha --require ../../guess test/*_test.ts",
89
"test": "mocha --require './guess' test/*_test.ts && npm run test:outdir"
910
},
@@ -23,14 +24,14 @@
2324
"license": "MIT",
2425
"devDependencies": {
2526
"expect.js": "^0.3.1",
26-
"mocha": "^2.4.5",
27+
"mocha": "^3.1.2",
2728
"power-assert": "^1.2.0",
28-
"react": "^0.14.7"
29+
"react": "^15.3.2"
2930
},
3031
"dependencies": {
3132
"espower-source": "^1.1.0",
3233
"minimatch": "^3.0.0",
33-
"typescript": "~1.8.2",
34-
"typescript-simple": "^5.0.0"
34+
"typescript": "^2.0.3",
35+
"typescript-simple": "^6.0.0"
3536
}
3637
}

test/demo.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,11 @@ describe('Person', () => {
2929
it('arrow function', () => {
3030
assert(alice.name === (() => 1));
3131
});
32+
// failed
33+
it('TypeScript 2.0', () => {
34+
function upperCase(this:string): string {
35+
return this.toUpperCase();
36+
}
37+
assert(alice.name === upperCase.call('test'));
38+
});
3239
});

0 commit comments

Comments
 (0)