File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed
Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 66 "extends": [
77 "kentcdodds/best-practices",
88 "kentcdodds/possible-errors",
9+ "kentcdodds/mocha"
910 ],
1011 "rules": {},
1112}
Original file line number Diff line number Diff line change 44 "description" : " Get random Star Wars names" ,
55 "main" : " src/index.js" ,
66 "scripts" : {
7- "test" : " echo \" Error: no test specified\" && exit 1" ,
7+ "test" : " mocha" ,
8+ "watch:test" : " mocha --watch" ,
89 "lint" : " eslint src"
910 },
1011 "repository" : {
2526 "unique-random-array" : " 1.0.0"
2627 },
2728 "devDependencies" : {
29+ "chai" : " 3.5.0" ,
2830 "eslint" : " 3.2.0" ,
29- "eslint-config-kentcdodds" : " ^9.0.0"
31+ "eslint-config-kentcdodds" : " ^9.0.0" ,
32+ "mocha" : " 3.0.0"
3033 }
3134}
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ var expect = require ( 'chai' ) . expect ;
4+
5+ describe ( 'starwars-names' , function ( ) {
6+ it ( 'should work' , function ( ) {
7+ expect ( true ) . to . be . true
8+ } ) ;
9+ } ) ;
Original file line number Diff line number Diff line change 1+ src/index.test.js
You can’t perform that action at this time.
0 commit comments