Test files linted

This commit is contained in:
Angelos Chalaris
2018-08-03 10:39:26 +03:00
parent 5ef1fab5fd
commit cc7b76d0b3
153 changed files with 754 additions and 463 deletions

View File

@ -19,21 +19,21 @@ test('round(1.005) returns 1', () => {
test('round([1.005, 2]) returns NaN', () => {
expect(isNaN(round([1.005, 2]))).toBeTruthy();
});
test('round(string) returns NaN', () => {
test('round(string) returns NaN', () => {
expect(isNaN(round('string'))).toBeTruthy();
});
test('round() returns NaN', () => {
test('round() returns NaN', () => {
expect(isNaN(round())).toBeTruthy();
});
test('round(132, 413, 4134) returns NaN', () => {
test('round(132, 413, 4134) returns NaN', () => {
expect(isNaN(round(132, 413, 4134))).toBeTruthy();
});
test('round({a: 132}, 413) returns NaN', () => {
expect(isNaN(round({a: 132}, 413))).toBeTruthy();
test('round({a: 132}, 413) returns NaN', () => {
expect(isNaN(round({ a: 132 }, 413))).toBeTruthy();
});
let start = new Date().getTime();
round(123.3423345345345345344, 11);
let end = new Date().getTime();
test('round(123.3423345345345345344, 11) takes less than 2s to run', () => {
expect((end - start) < 2000).toBeTruthy();
expect(end - start < 2000).toBeTruthy();
});