Skip to content

Instantly share code, notes, and snippets.

@vikingosegundo
Last active May 14, 2021 03:40
Show Gist options
  • Save vikingosegundo/827922e408c89ad4be15963b05825011 to your computer and use it in GitHub Desktop.
Save vikingosegundo/827922e408c89ad4be15963b05825011 to your computer and use it in GitHub Desktop.
change(store, .by(.adding(.item(i))) )
respond(.item(i, .wasAdded))
expect(items(in: appState)).to(beEmpty())
expect(dueDate(of:first(of:items(in: appState))!)).to(equal(Date.tomorrow.noon))
expect(dueDate(of:first(of:appState.items)!)).to(equal(Date.tomorrow.noon))
let newItem = change(item, .by(.updating(.completed(to: true))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment