deno.land / x / lume@v2.1.4 / tests / __snapshots__ / search.test.ts.snap

search.test.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
export const snapshot = {};
snapshot[`Search by Tags 1`] = `"(data) => data.tags?.includes(value0) && data.tags?.includes(value1)"`;
snapshot[`Search by NOT Tags 1`] = `"(data) => data.tags?.includes(value0) && !data.tags?.includes(value1)"`;
snapshot[`Search by Equal 1`] = `"(data) => data.foo === value0"`;
snapshot[`Search by Equal undefined 1`] = `"(data) => data.foo === value0"`;
snapshot[`Search by Equal null 1`] = `"(data) => data.foo === value0"`;
snapshot[`Search by Upper than 1`] = `"(data) => data.foo > value0"`;
snapshot[`Search by Upper or equals than 1`] = `"(data) => data.foo >= value0"`;
snapshot[`Search by Lower than 1`] = `"(data) => data.foo < value0"`;
snapshot[`Search by Lower or equals than 1`] = `"(data) => data.foo <= value0"`;
snapshot[`Search by Not Equal 1`] = `"(data) => data.foo !== value0"`;
snapshot[`Search by Not Equal alt 1`] = `"(data) => data.foo !== value0"`;
snapshot[`Search by Starts With 1`] = `"(data) => data.foo?.startsWith(value0)"`;
snapshot[`Search by NOT Starts With 1`] = `"(data) => !data.foo?.startsWith(value0)"`;
snapshot[`Search by Ends With 1`] = `"(data) => data.foo?.endsWith(value0)"`;
snapshot[`Search by Contains 1`] = `"(data) => data.foo?.includes(value0)"`;
snapshot[`Search by Tags with OR 1`] = `"(data) => value0.some((i) => data.tags?.includes(i))"`;
snapshot[`Search by Equal with OR 1`] = `"(data) => value0.some((i) => data.foo === i)"`;
snapshot[`Search by Not Equal with OR 1`] = `"(data) => value0.some((i) => data.foo !== i)"`;
snapshot[`Search by Starts With with OR 1`] = `"(data) => value0.some((i) => data.foo?.startsWith(i))"`;
snapshot[`Search by Ends With with OR 1`] = `"(data) => value0.some((i) => data.foo?.endsWith(i))"`;
snapshot[`Search by Contains with OR 1`] = `"(data) => value0.some((i) => data.foo?.includes(i))"`;
snapshot[`Search Date by Equal 1`] = `"(data) => data.foo?.getTime() === value0.getTime()"`;
snapshot[`Search Date by Not Equal 1`] = `"(data) => data.foo?.getTime() !== value0.getTime()"`;
snapshot[`Search Date by lower than 1`] = `"(data) => data.foo?.getTime() < value0.getTime()"`;
snapshot[`Search Date by lower or equals than 1`] = `"(data) => data.foo?.getTime() <= value0.getTime()"`;
snapshot[`Search Date by upper than 1`] = `"(data) => data.foo?.getTime() > value0.getTime()"`;
snapshot[`Search Date by upper or equals than 1`] = `"(data) => data.foo?.getTime() >= value0.getTime()"`;
snapshot[`Sort by one field 1`] = `[Function: anonymous]`;
snapshot[`Sort by one field DESC 1`] = `[Function: anonymous]`;
snapshot[`Sort by two fields 1`] = `[Function: anonymous]`;
snapshot[`Sort by two fields, second is DESC 1`] = `[Function: anonymous]`;
snapshot[`Test the file searcher 1`] = `[ "/404.html", "/favicon.png", "/overrided-page2/index.html", "/page5/index.html", "/page_3", "/pages/new-name/page7/index.html", "/pages/page4/index.html", "/pages/page6/index.html", "/static/index.html", "/styles.css",]`;
snapshot[`Test the file searcher 2`] = `[ "/favicon.png",]`;
snapshot[`Test the file searcher 3`] = `[ "/favicon.png",]`;
lume

Version Info

Tagged at
7 months ago