Skip to content

Instantly share code, notes, and snippets.

@javierfernandes
Last active November 16, 2020 11:59
Show Gist options
  • Save javierfernandes/47407ee66404e6a5dd85ef8fc2c42f7f to your computer and use it in GitHub Desktop.
Save javierfernandes/47407ee66404e6a5dd85ef8fc2c42f7f to your computer and use it in GitHub Desktop.
const A = { id: 'A', name: 'A' }
const B = { id: 'B', name: 'B' }
const NEW = { id: 'NEW', sys: 'marker', data: { children: [] }, project: 'my-project' }
it('should add a new object for a single ADDED change', () => {
doTest({
objects: { A, B },
changes: [
{ added: NEW }
],
expectedObjects: { A, B, NEW }
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment