Skip to content

Test for proposals#21

Open
dannynpham wants to merge 7 commits intomasterfrom
test-for-proposals
Open

Test for proposals#21
dannynpham wants to merge 7 commits intomasterfrom
test-for-proposals

Conversation

@dannynpham
Copy link
Copy Markdown
Collaborator

@tbashor can you review the test?


const request = require('supertest');
const app = require('../../server/server');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You need to boot the server in order for the loopback stuff to kick in. Add:

app.boot();

@tbashor
Copy link
Copy Markdown
Contributor

tbashor commented Aug 24, 2016

I was able to get the test to run using the mocha cli. I'm still working on getting all of the automation in place. I put some suggestions in line in the code.

@dannynpham
Copy link
Copy Markdown
Collaborator Author

@tbashor I added app.boot() but it didn't seem to change anything to the test, even when i go to a route that is nonexistent.

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.

2 participants