Skip to content

Instantly share code, notes, and snippets.

@gsans
Created January 4, 2015 22:06
Show Gist options
  • Save gsans/904fa22cbe6e23909651 to your computer and use it in GitHub Desktop.
Save gsans/904fa22cbe6e23909651 to your computer and use it in GitHub Desktop.
expect(fn).toThrow(e);
expect(instance).toBe(instance);
expect(mixed).toBeDefined();
expect(mixed).toBeFalsy();
expect(number).toBeGreaterThan(number);
expect(number).toBeLessThan(number);
expect(mixed).toBeNull();
expect(mixed).toBeTruthy();
expect(mixed).toBeUndefined();
expect(array).toContain(member);
expect(string).toContain(substring);
expect(mixed).toEqual(mixed);
expect(mixed).toMatch(pattern);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment