Skip to content

Instantly share code, notes, and snippets.

@wwwdata
Last active August 29, 2015 13:57
Show Gist options
  • Save wwwdata/9410648 to your computer and use it in GitHub Desktop.
Save wwwdata/9410648 to your computer and use it in GitHub Desktop.
Funny Type Test
// Awesome type Tests
it('0 == 0', function() {
expect(0 == 0).toBe(true);
});
it('\'0\' == 0', function() {
expect('0' == 0).toBe(true);
});
it('false == 0', function() {
expect(false == 0).toBe(true);
});
it('null == 0', function() {
expect(null == 0).toBe(true);
});
it('undefined == 0', function() {
expect(undefined == 0).toBe(true);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment