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

debugged tests #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

noahgribbin
Copy link

No description provided.

const expect = require('chai').expect;
const request = require('superagent');
const Food = require('../model/food.js');
const url = 'http://localhost:8000';

Choose a reason for hiding this comment

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

make sure that the port you pass here as your URL matches the port you explicitly create in your server.js file. When they aren't the same it can cause your test to error out because the server comes up on a different port than your test file is attempting to run on.

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