Final fixes, all tests running

This commit is contained in:
Angelos Chalaris
2018-06-18 20:41:57 +03:00
parent 977adb1198
commit e9594e6355
49 changed files with 2189 additions and 1198 deletions

View File

@ -19,7 +19,7 @@ test('isPrimitive(true) is primitive', () => {
test('isPrimitive(50) is primitive', () => {
expect(isPrimitive(50)).toBeTruthy();
});
test('isPrimitive('Hello') is primitive', () => {
test('isPrimitive(\'Hello\') is primitive', () => {
expect(isPrimitive('Hello')).toBeTruthy();
});
test('isPrimitive(false) is primitive', () => {
@ -35,7 +35,7 @@ test('isPrimitive({ a: 123 }) is not primitive', () => {
expect(isPrimitive({ a: 123 })).toBeFalsy();
});
let start = new Date().getTime();
isPrimitive({ a: 123
isPrimitive({ a: 123 });
let end = new Date().getTime();
test('isPrimitive({ a: 123 }) takes less than 2s to run', () => {
expect((end - start) < 2000).toBeTruthy();