Skip to content

debugged tests#9

Open
noahgribbin wants to merge 2 commits intocodefellows-javascript-401d13:masterfrom
noahgribbin:master
Open

debugged tests#9
noahgribbin wants to merge 2 commits intocodefellows-javascript-401d13:masterfrom
noahgribbin:master

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