This repository was archived by the owner on Jul 17, 2020. It is now read-only.
Add unit tests for read() of customer controller#412
Open
tsukimi2 wants to merge 13 commits intofreeCodeCamp:stagingfrom
Open
Add unit tests for read() of customer controller#412tsukimi2 wants to merge 13 commits intofreeCodeCamp:stagingfrom
tsukimi2 wants to merge 13 commits intofreeCodeCamp:stagingfrom
Conversation
Contributor
Author
|
@jspaine I tried to test out whether my code is part of the problem of triggering the test fail on a different part of the code and it seems that whenever I include the customerCtrl.read(req, res) (e.g. in line 92 of server/controllers/customer.spec.js), it will cause the test failure. However, I still couldn't figure out how invoking the read function of the customer controller (which merely consists of the single line res.json(req.customer)) can actually trigger the test failure in a user API signup test. I've been reading the code of both the controller controller and the user controller's signup but can't seem to see from the code how one can affect the other. It'll be great if you could help me a bit on this issue. Thanks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.