-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relax ESLint a bit in own test suite
- Loading branch information
Showing
12 changed files
with
45 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,51 @@ | ||
// prettier-ignore | ||
export const STRINGS: string[] = [ | ||
'', | ||
'1', | ||
'3.14', | ||
'foo', | ||
' 1 2 3 ', | ||
'not a number', | ||
'42', | ||
'', | ||
'1', | ||
'3.14', | ||
'foo', | ||
' 1 2 3 ', | ||
'not a number', | ||
'42', | ||
]; | ||
|
||
// prettier-ignore | ||
export const NUMBERS: number[] = [ | ||
-317.827682288236872, | ||
-1, | ||
-0, | ||
0, | ||
1, | ||
2, | ||
3.14, | ||
Number.EPSILON, | ||
Math.PI, | ||
42, | ||
-317.827682288236872, | ||
-1, | ||
-0, | ||
0, | ||
1, | ||
2, | ||
3.14, | ||
Number.EPSILON, | ||
Math.PI, | ||
42, | ||
]; | ||
|
||
// prettier-ignore | ||
export const SPECIAL_NUMBERS: number[] = [ | ||
NaN, | ||
Number.NEGATIVE_INFINITY, | ||
Number.POSITIVE_INFINITY, | ||
NaN, | ||
Number.NEGATIVE_INFINITY, | ||
Number.POSITIVE_INFINITY, | ||
]; | ||
|
||
// prettier-ignore | ||
export const DATES: Date[] = [ | ||
new Date('1996-3-17'), | ||
new Date(1534521367000), | ||
new Date('2017-11-28T15:56:07+0200'), | ||
new Date(), | ||
new Date('1996-3-17'), | ||
new Date(1534521367000), | ||
new Date('2017-11-28T15:56:07+0200'), | ||
new Date(), | ||
]; | ||
|
||
// prettier-ignore | ||
export const SPECIAL_DATES: Date[] = [ | ||
new Date('not a date'), | ||
]; | ||
export const SPECIAL_DATES: Date[] = [new Date('not a date')]; | ||
|
||
// prettier-ignore | ||
export const BOOLS: boolean[] = [ | ||
false, | ||
true, | ||
]; | ||
export const BOOLS: boolean[] = [false, true]; | ||
|
||
// prettier-ignore | ||
export const CONSTANTS: (null | undefined)[] = [ | ||
null, | ||
undefined, | ||
]; | ||
export const CONSTANTS: (null | undefined)[] = [null, undefined]; | ||
|
||
// prettier-ignore | ||
export const INPUTS: unknown[] = [ | ||
...STRINGS, | ||
...NUMBERS, | ||
...SPECIAL_NUMBERS, | ||
...DATES, | ||
...SPECIAL_DATES, | ||
...BOOLS, | ||
...CONSTANTS, | ||
...STRINGS, | ||
...NUMBERS, | ||
...SPECIAL_NUMBERS, | ||
...DATES, | ||
...SPECIAL_DATES, | ||
...BOOLS, | ||
...CONSTANTS, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* eslint-disable no-restricted-syntax */ | ||
|
||
import { describe, expect, test } from 'vitest'; | ||
import { | ||
always, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* eslint-disable no-restricted-syntax */ | ||
|
||
import { describe, expect, test } from 'vitest'; | ||
import { | ||
anyNumber, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters