Skip to content
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

Merged
merged 10 commits into from Jun 29, 2016
Merged

Update tests #2

merged 10 commits into from Jun 29, 2016

Conversation

jeffrifwald
Copy link
Contributor

@ryan-roemer This should address the issues we talked about today. Thanks for the feedback!

@coveralls
Copy link

coveralls commented Jun 28, 2016

Coverage Status

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();
Copy link
Member

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();
});

@ryan-roemer
Copy link
Member

Great work! Getting there! Ping for re-review.

@coveralls
Copy link

coveralls commented Jun 29, 2016

Coverage Status

Changes Unknown when pulling 1335fef on jmcriffey:chore-updateTests into * on FormidableLabs:master*.

@jeffrifwald
Copy link
Contributor Author

@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",
Copy link
Member

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.

Copy link
Contributor Author

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.

@ryan-roemer
Copy link
Member

Great work! A couple of nits in various places, after which everything LGTM without re-review (unless you want it).

@coveralls
Copy link

coveralls commented Jun 29, 2016

Coverage Status

Changes Unknown when pulling fb7c488 on jmcriffey:chore-updateTests into * on FormidableLabs:master*.

@coveralls
Copy link

coveralls commented Jun 29, 2016

Coverage Status

Changes Unknown when pulling c57bf80 on jmcriffey:chore-updateTests into * on FormidableLabs:master*.

@jeffrifwald jeffrifwald merged commit bbe3bc4 into FormidableLabs:master Jun 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants