Rewrite some tests to no longer rely on internals#2132
Merged
Conversation
andrewiggins
commented
Nov 15, 2019
| expect(child._vnode._dom).to.equalNode(child.base); | ||
| }); | ||
|
|
||
| it('should update old dom on forceUpdate in a lifecycle', () => { |
Member
Author
There was a problem hiding this comment.
I just moved this test into the forceUpdate describe section below.
| /** @jsx createElement */ | ||
| const h = createElement; | ||
|
|
||
| let spyAll = obj => Object.keys(obj).forEach(key => sinon.spy(obj, key)); |
Member
Author
There was a problem hiding this comment.
Removed this copy of the spyAll function and replaced it with the same function declared in helpers.js. Same for sortAttributes below
marvinhagemeister
approved these changes
Nov 15, 2019
marvinhagemeister
left a comment
Member
There was a problem hiding this comment.
Top notch as usual 🙌💯
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.
This is a stepping stone to allowing us to run tests against minified builds