mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
308 B
9 lines
308 B
export const tests = [] |
|
const t = (f) => tests.push(f) |
|
|
|
t(() => Array.isArray(arr)) // arr is declared and is an array |
|
t(({ eq }) => eq(arr[0], 4)) // arr first element is 4 |
|
t(({ eq }) => eq(arr[1], '2')) // arr second element is "2" |
|
t(({ eq }) => eq(arr.length, 2)) // arr length is 2 |
|
|
|
Object.freeze(tests)
|
|
|