Skip to content

Instantly share code, notes, and snippets.

@bmdalex
Created January 24, 2021 21:37
Show Gist options
  • Save bmdalex/10b3cac3b591ed771a4db55aaa5c6c99 to your computer and use it in GitHub Desktop.
Save bmdalex/10b3cac3b591ed771a4db55aaa5c6c99 to your computer and use it in GitHub Desktop.
DO use sentences that describe the behaviour of the component
describe('when the user submits a valid form', () => {
beforeEach(() => { ... })
it('should enable the submit button', { ... })
 it('should register the user by calling external API', () => { ... })
  it('should emit the "register-update" event', { ... })
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment