Skip to content

Instantly share code, notes, and snippets.

@javierfernandes
Created November 15, 2020 13:37
Show Gist options
  • Save javierfernandes/0e1b16100da84412d216b39b2acd8090 to your computer and use it in GitHub Desktop.
Save javierfernandes/0e1b16100da84412d216b39b2acd8090 to your computer and use it in GitHub Desktop.
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