Skip to content

Instantly share code, notes, and snippets.

@kylewhitaker
Last active September 8, 2017 19:37
Show Gist options
  • Save kylewhitaker/6836ac6b451ad0a5763755d91dbe014b to your computer and use it in GitHub Desktop.
Save kylewhitaker/6836ac6b451ad0a5763755d91dbe014b to your computer and use it in GitHub Desktop.
Example Unit Test: "Some Component: when someMethod is called and someCondition is true then something should happen"
describe('SomeComponent:', () => {
describe('when someMethod is called', () => {
describe('and someCondition is true', () => {
it('then something should happen', () => {
// expect: something to happen
});
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment