Skip to content

Instantly share code, notes, and snippets.

@MonsieurMan
Last active August 10, 2018 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MonsieurMan/ea9568ead326ee17997fe0d35baf7304 to your computer and use it in GitHub Desktop.
Save MonsieurMan/ea9568ead326ee17997fe0d35baf7304 to your computer and use it in GitHub Desktop.
it('updates the result if we change the props', async () => {
element.a = 1;
element.b = 1;
await testWindow.flush();
expect(element.textContent).toEqual('2');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment