File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 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 },
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}
Original file line number Diff line number Diff 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} ) ;
You can’t perform that action at this time.
0 commit comments