Skip to content

Commit 6354a98

Browse files
committed
Fixing initial specs and adding watcher
1 parent 1608c00 commit 6354a98

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"private": true,
66
"scripts": {
77
"start": "browser-sync start --server ./src --files ./src",
8-
"test": "mocha test/*.spec.js",
8+
"test": "mocha --colors test/*.spec.js",
9+
"test:watch": "watch-run -p 'src/index.html' npm run test",
910
"deploy:github-pages": "git subtree push --prefix src origin gh-pages"
1011
},
1112
"author": "Adam Fortuna <adam@codeschool.com>",
@@ -14,6 +15,7 @@
1415
"browser-sync": "^2.14.0",
1516
"chai": "^3.5.0",
1617
"jsdom": "^9.4.1",
17-
"mocha": "^3.0.1"
18+
"mocha": "^3.0.1",
19+
"watch-run": "^1.2.4"
1820
}
1921
}

test/portfolio.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('The webpage', () => {
3636
});
3737

3838
it('should remove the existing class @nav', () => {
39-
const nav = doc.querySelector('header .nav');
39+
const nav = doc.querySelector('.nav');
4040
assert.isOk(!nav, 'We no longer need an element with a class of `.nav`. Go ahead and remove it.');
4141
});
4242
});

0 commit comments

Comments
 (0)