Created
November 15, 2020 13:37
-
-
Save javierfernandes/0e1b16100da84412d216b39b2acd8090 to your computer and use it in GitHub Desktop.
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
it('should add a new object for a single ADDED change', () => { | |
doTest({ | |
objects: { | |
A: { id: 'A', name: 'A' }, | |
B: { id: 'B', name: 'B' }, | |
}, | |
changes: [ | |
{ added: { id: 'NEW', sys: 'marker', data: { children: [] }, project: 'my-project' } } | |
], | |
expectedObjects: { | |
...state.project.masterBranch.objects, | |
NEW: changeSet.changes[0].added | |
} | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment