/
SummaryResolver.test.ts.snap
88 lines (87 loc) · 1.96 KB
/
SummaryResolver.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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Summary Resolver should return as expected should return correct summary 2`] = `
Object {
"results": Object {
"hits": Object {
"items": Array [
Object {
"id": "tt0468569",
},
Object {
"id": "tt0110912",
},
Object {
"id": "tt0167260",
},
Object {
"id": "tt0114369",
},
Object {
"id": "tt0073486",
},
Object {
"id": "tt0172495",
},
Object {
"id": "tt1520211",
},
Object {
"id": "tt0338013",
},
Object {
"id": "tt0078788",
},
Object {
"id": "tt0180093",
},
],
"page": Object {
"from": 0,
"pageNumber": 0,
"size": 10,
"total": 4162,
"totalPages": 417,
},
},
"summary": Object {
"appliedFilters": Array [
Object {
"display": "ListFacet",
"id": "actors_Jeff Lindsay",
"identifier": "actors",
"label": "Actors",
"value": "Jeff Lindsay",
},
Object {
"display": "RangeSliderFacet",
"id": "imdbrating_0_50",
"identifier": "imdbrating",
"label": "IMDB Rating",
"max": 50,
"min": 0,
},
Object {
"dateMax": "2020-12-18T00:00:00.000Z",
"dateMin": "2012-12-18T00:00:00.000Z",
"display": "DateRangeFacet",
"id": "released_2012-12-18T00:00:00.000Z_2020-12-18T00:00:00.000Z",
"identifier": "released",
"label": "Release",
},
],
"query": "",
"sortOptions": Array [
Object {
"id": "relevance",
"label": "Relevance",
},
Object {
"id": "released",
"label": "Recent Releases",
},
],
"total": 4162,
},
},
}
`;