File tree Expand file tree Collapse file tree 4 files changed +21
-1
lines changed
Expand file tree Collapse file tree 4 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 1+ language : node_js
2+ node_js :
3+ - 0.8
4+ - 0.9
Original file line number Diff line number Diff line change 1515 },
1616 "version" : " 0.0.1" ,
1717 "dependencies" : {},
18- "devDependencies" : {}
18+ "devDependencies" : {
19+ "yeoman" : " ~0.9.1"
20+ },
21+ "scripts" : {
22+ "test" : " node_modules/.bin/yeoman test --verbose"
23+ }
1924}
Original file line number Diff line number Diff line change 2020 <!-- include source files here... -->
2121
2222 <!-- include spec files here... -->
23+ < script src ="spec/array_spec.js "> </ script >
2324
2425 <!-- trigger the mocha runner -->
2526 < script src ="runner/mocha.js "> </ script >
Original file line number Diff line number Diff line change 1+ describe ( 'Array' , function ( ) {
2+ describe ( '#indexOf()' , function ( ) {
3+ it ( 'should return -1 when the value is not present' , function ( ) {
4+ var array = [ 1 , 2 , 3 ] ;
5+ expect ( array ) . to . have . length ( 3 ) ;
6+ expect ( array . indexOf ( 5 ) ) . to . equal ( - 1 ) ;
7+ expect ( array . indexOf ( 0 ) ) . to . equal ( - 1 ) ;
8+ } ) ;
9+ } ) ;
10+ } ) ;
You can’t perform that action at this time.
0 commit comments