New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tests #2
Update tests #2
Conversation
Changes Unknown when pulling ddbb55b on jmcriffey:chore-updateTests into * on FormidableLabs:master*. |
@@ -6,10 +6,16 @@ import sinon from "sinon"; | |||
|
|||
|
|||
describe("fileHandler", () => { | |||
const sandbox = sinon.sandbox.create(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never "do" anything outside of beforeEach|afterEach|it
, just set scope. Should change to:
let sandbox;
beforeEach(() => {
sandbox = sinon.sandbox.create();
});
Great work! Getting there! Ping for re-review. |
Changes Unknown when pulling 1335fef on jmcriffey:chore-updateTests into * on FormidableLabs:master*. |
@ryan-roemer Comments should be addressed. |
@@ -8,7 +8,7 @@ | |||
"scripts": { | |||
"build": "rimraf lib && babel src/ -d lib/", | |||
"check-coverage": "babel-istanbul check-coverage", | |||
"cover": "NODE_PATH=./src babel-node node_modules/.bin/babel-istanbul cover node_modules/.bin/_mocha -- --require test/main.js --recursive test", | |||
"cover": "rimraf coverage && NODE_PATH=./src babel-node node_modules/.bin/babel-istanbul cover node_modules/.bin/_mocha -- --require test/main.js --recursive test", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: Do we need ./
prefixes here and on the unit
task? If not, remove because they break windows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. We don't need them.
Great work! A couple of nits in various places, after which everything LGTM without re-review (unless you want it). |
Changes Unknown when pulling fb7c488 on jmcriffey:chore-updateTests into * on FormidableLabs:master*. |
Changes Unknown when pulling c57bf80 on jmcriffey:chore-updateTests into * on FormidableLabs:master*. |
@ryan-roemer This should address the issues we talked about today. Thanks for the feedback!