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

Merge index tests #91

Merged
merged 7 commits into from
Jul 19, 2016
Merged

Merge index tests #91

merged 7 commits into from
Jul 19, 2016

Conversation

ibilal
Copy link
Collaborator

@ibilal ibilal commented Jul 15, 2016

Merged all index GET/POST tests into a single file.

// This makes a server request to the route location '/'
chai.request(server)
.get('/')
.end(function (err, res, body) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a parameter body here, but it's never used. Do we need it?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, you're right; if it does nothing then we don't need it.

let chai = require('chai');
let expect = chai.expect;
let should = chai.should;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove should.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lint complained about removing should

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm this was resolved when I changed the next note to expect

@chances
Copy link
Collaborator

chances commented Jul 15, 2016

Apart from rogue should, LGTM.

.post('/')
.field('username', fixture.username)
.field('password', fixture.password)
.field('teamName', fixture.teamName);
Copy link
Collaborator

@kathtran kathtran Jul 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did the linter accept all of the extraneous whitespace? Tabs should be 2 spaces

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the checks passed

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe try linting the branch locally?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub is still showing the rogue should. So no, that's unresolved

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chances I wasn't sure if expect.fail() is correct. It worked, but it wasn't in the docs I saw it on a site.

Copy link
Collaborator

@chances chances Jul 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ibilal expect.fail() is fine, see: chaijs/chai#487 (Does expect.to.fail90 work?)

@ibilal
Copy link
Collaborator Author

ibilal commented Jul 18, 2016

Before you merge this branch, I noticed that I get this printed to the console and I'm not sure if it's supposed to be doing this:
double callback!
double callback!
double callback!
double callback!
double callback!
double callback!
double callback!
@chances @MichaelLHansen @ruv-prog-so is this fine? This happens after running all mocha tests.

@chances
Copy link
Collaborator

chances commented Jul 18, 2016

@ibilal Another feature branch was merged with leftover console log's in the index get request test.

@RickyV33
Copy link
Owner

@chances doesn't look like there are any console logs in that test. Might be a warning from node about an actual double callback?

@RickyV33 RickyV33 merged commit 8907589 into LogInPage Jul 19, 2016
@RickyV33 RickyV33 deleted the merge-index-tests branch July 19, 2016 04:31
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.

4 participants