-
Notifications
You must be signed in to change notification settings - Fork 0
Testing #2
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
base: master
Are you sure you want to change the base?
Conversation
| var expect = require("chai").expect; | ||
| var db = require("../public/db"); | ||
| var logicFile = require("../public/logic"); | ||
| var logic = new logicFile(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use let/const
logic/logicFile - not good names
| describe("Get Heroes", function() { | ||
| describe("Get All Heroes", function() { | ||
| it("Get All Heroes", function() { | ||
| var allHeroes = logic.getAllHeroes(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u should test your server functionality using chai
| expect(byName.find((heroe) => heroe.id === name)).to.deep.equal(-1); | ||
| }); | ||
| }); | ||
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u didn't check all of your functionality, like add hero
No description provided.