removed-testspec-code#1
Open
ScottDalessandro wants to merge 1 commit into
Open
Conversation
Great work! Keep in mind, your "solution" file runs first, this is where you define all the functions needed for your test specs. You don't have to invoke, call, or pass arguments to the functions in your properties.js file, this is what the test spec does for you! The specs will invoke and use the code you defined in properties.js and use inside of each spec. In your specs, you will see code that looks like: ``` var someArray = []; expect(setPropertiesOnArrayObj(someArray)).toEqual(someArray); ``` Inside of the `expect` the function you defined is invoked and passed an argument, then `toEqual` checks the value of `someArray` setPropertiesOnArrayObj is invoked! Great work! When you get a chance, please use the forked version of this repository, it makes grading and adding comments a lot easier for instructors. The process of doing this is: 1. Fork Fullstack Test First from the Fullstack's repository. 2. Clone the forked version that is now on your account to your local machine and use that version. 3. The repo will say it is private but since you forked it from Fullstack's account, we can access it and make comments on it. Great work!
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Great work! Keep in mind, your "solution" file runs first, this is where you define all the functions needed for your test specs. You don't have to invoke, call, or pass arguments to the functions in your properties.js file, this is what the test spec does for you! The specs will invoke and use the code you defined in properties.js and use inside of each spec. In your specs, you will see code that looks like:
Inside of the
expectthe function you defined is invoked and passed an argument, thentoEqualchecks the value ofsomeArraysetPropertiesOnArrayObj is invoked!Great work! When you get a chance, please use the forked version of this repository, it makes grading and adding comments a lot easier for instructors. The process of doing this is:
Great work!