Skip to content

Commit 299f2b5

Browse files
committed
update(snapshots): updated snapshots to remove Array and Object declarations
1 parent df08511 commit 299f2b5

35 files changed

Lines changed: 1871 additions & 1874 deletions

File tree

jest.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,4 @@ module.exports = {
2323
'^@testData(.*)$': '<rootDir>/src/testData$1',
2424
},
2525
snapshotSerializers: ['enzyme-to-json/serializer'],
26-
snapshotFormat: {
27-
printBasicPrototype: true,
28-
},
2926
};

src/lib/components/CancelModal/__snapshots__/CancelModal.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ exports[`CancelModal tests should load the cancel loan modal component 1`] = `
4747
disabled={false}
4848
eventsEnabled={true}
4949
on={
50-
Array [
50+
[
5151
"click",
5252
"hover",
5353
]
5454
}
5555
open={false}
5656
pinned={false}
57-
popperModifiers={Array []}
57+
popperModifiers={[]}
5858
position="bottom left"
5959
/>
6060
</ModalContent>

src/lib/components/ResultsTable/__snapshots__/ResultsTable.test.js.snap

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,30 @@ exports[`ResultsTable tests should load the ResultTable component 1`] = `
2121
exports[`ResultsTable tests should not render the see all button when showing only a few rows 1`] = `
2222
<ResultsTable
2323
columns={
24-
Array [
25-
Object {
24+
[
25+
{
2626
"field": "",
2727
"formatter": [Function],
2828
"title": "view",
2929
},
30-
Object {
30+
{
3131
"field": "id",
3232
"title": "ID",
3333
},
3434
]
3535
}
3636
currentPage={1}
3737
data={
38-
Array [
39-
Object {
38+
[
39+
{
4040
"end_date": "2018-01-01",
4141
"id": "1",
4242
"patron_pid": "patron_1",
4343
"pid": "loan1",
4444
"start_date": "2018-01-01",
4545
"updated": "2018-01-01",
4646
},
47-
Object {
47+
{
4848
"end_date": "2018-01-01",
4949
"id": "2",
5050
"patron_pid": "patron_2",
@@ -88,13 +88,13 @@ exports[`ResultsTable tests should not render the see all button when showing on
8888
>
8989
<ResultsTableHeader
9090
columns={
91-
Array [
92-
Object {
91+
[
92+
{
9393
"field": "",
9494
"formatter": [Function],
9595
"title": "view",
9696
},
97-
Object {
97+
{
9898
"field": "id",
9999
"title": "ID",
100100
},
@@ -153,29 +153,29 @@ exports[`ResultsTable tests should not render the see all button when showing on
153153
</ResultsTableHeader>
154154
<ResultsTableBody
155155
columns={
156-
Array [
157-
Object {
156+
[
157+
{
158158
"field": "",
159159
"formatter": [Function],
160160
"title": "view",
161161
},
162-
Object {
162+
{
163163
"field": "id",
164164
"title": "ID",
165165
},
166166
]
167167
}
168168
rows={
169-
Array [
170-
Object {
169+
[
170+
{
171171
"end_date": "2018-01-01",
172172
"id": "1",
173173
"patron_pid": "patron_1",
174174
"pid": "loan1",
175175
"start_date": "2018-01-01",
176176
"updated": "2018-01-01",
177177
},
178-
Object {
178+
{
179179
"end_date": "2018-01-01",
180180
"id": "2",
181181
"patron_pid": "patron_2",
@@ -219,7 +219,7 @@ exports[`ResultsTable tests should not render the see all button when showing on
219219
>
220220
<Ref
221221
innerRef={
222-
Object {
222+
{
223223
"current": <button
224224
class="ui button"
225225
>
@@ -230,7 +230,7 @@ exports[`ResultsTable tests should not render the see all button when showing on
230230
>
231231
<RefFindNode
232232
innerRef={
233-
Object {
233+
{
234234
"current": <button
235235
class="ui button"
236236
>
@@ -293,7 +293,7 @@ exports[`ResultsTable tests should not render the see all button when showing on
293293
>
294294
<Ref
295295
innerRef={
296-
Object {
296+
{
297297
"current": <button
298298
class="ui button"
299299
>
@@ -304,7 +304,7 @@ exports[`ResultsTable tests should not render the see all button when showing on
304304
>
305305
<RefFindNode
306306
innerRef={
307-
Object {
307+
{
308308
"current": <button
309309
class="ui button"
310310
>
@@ -361,30 +361,30 @@ exports[`ResultsTable tests should not render the see all button when showing on
361361
exports[`ResultsTable tests should render the see all button when showing only a few rows 1`] = `
362362
<ResultsTable
363363
columns={
364-
Array [
365-
Object {
364+
[
365+
{
366366
"field": "",
367367
"formatter": [Function],
368368
"title": "view",
369369
},
370-
Object {
370+
{
371371
"field": "id",
372372
"title": "ID",
373373
},
374374
]
375375
}
376376
currentPage={1}
377377
data={
378-
Array [
379-
Object {
378+
[
379+
{
380380
"end_date": "2018-01-01",
381381
"id": "1",
382382
"patron_pid": "patron_1",
383383
"pid": "loan1",
384384
"start_date": "2018-01-01",
385385
"updated": "2018-01-01",
386386
},
387-
Object {
387+
{
388388
"end_date": "2018-01-01",
389389
"id": "2",
390390
"patron_pid": "patron_2",
@@ -436,13 +436,13 @@ exports[`ResultsTable tests should render the see all button when showing only a
436436
>
437437
<ResultsTableHeader
438438
columns={
439-
Array [
440-
Object {
439+
[
440+
{
441441
"field": "",
442442
"formatter": [Function],
443443
"title": "view",
444444
},
445-
Object {
445+
{
446446
"field": "id",
447447
"title": "ID",
448448
},
@@ -501,21 +501,21 @@ exports[`ResultsTable tests should render the see all button when showing only a
501501
</ResultsTableHeader>
502502
<ResultsTableBody
503503
columns={
504-
Array [
505-
Object {
504+
[
505+
{
506506
"field": "",
507507
"formatter": [Function],
508508
"title": "view",
509509
},
510-
Object {
510+
{
511511
"field": "id",
512512
"title": "ID",
513513
},
514514
]
515515
}
516516
rows={
517-
Array [
518-
Object {
517+
[
518+
{
519519
"end_date": "2018-01-01",
520520
"id": "1",
521521
"patron_pid": "patron_1",
@@ -559,7 +559,7 @@ exports[`ResultsTable tests should render the see all button when showing only a
559559
>
560560
<Ref
561561
innerRef={
562-
Object {
562+
{
563563
"current": <button
564564
class="ui button"
565565
>
@@ -570,7 +570,7 @@ exports[`ResultsTable tests should render the see all button when showing only a
570570
>
571571
<RefFindNode
572572
innerRef={
573-
Object {
573+
{
574574
"current": <button
575575
class="ui button"
576576
>
@@ -682,7 +682,7 @@ exports[`ResultsTable tests should render the see all button when showing only a
682682
>
683683
<Ref
684684
innerRef={
685-
Object {
685+
{
686686
"current": <button
687687
class="ui small button"
688688
>
@@ -693,7 +693,7 @@ exports[`ResultsTable tests should render the see all button when showing only a
693693
>
694694
<RefFindNode
695695
innerRef={
696-
Object {
696+
{
697697
"current": <button
698698
class="ui small button"
699699
>

src/lib/components/SearchBar/__snapshots__/SearchBarILS.test.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ exports[`SearchBar tests should match snapshot 1`] = `
1313
>
1414
<Input
1515
action={
16-
Object {
16+
{
1717
"icon": "search",
1818
"onClick": [Function],
1919
}
@@ -46,7 +46,7 @@ exports[`SearchBar tests should match snapshot 1`] = `
4646
>
4747
<Ref
4848
innerRef={
49-
Object {
49+
{
5050
"current": <button
5151
class="ui icon button"
5252
>
@@ -60,7 +60,7 @@ exports[`SearchBar tests should match snapshot 1`] = `
6060
>
6161
<RefFindNode
6262
innerRef={
63-
Object {
63+
{
6464
"current": <button
6565
class="ui icon button"
6666
>

src/lib/components/backoffice/RecordsBriefCard/__snapshots__/RecordsBriefCard.test.js.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ exports[`RecordsBriefCard tests should render with buttons 1`] = `
114114
>
115115
<Ref
116116
innerRef={
117-
Object {
117+
{
118118
"current": <button
119119
class="ui fluid icon positive button"
120120
>
@@ -129,7 +129,7 @@ exports[`RecordsBriefCard tests should render with buttons 1`] = `
129129
>
130130
<RefFindNode
131131
innerRef={
132-
Object {
132+
{
133133
"current": <button
134134
class="ui fluid icon positive button"
135135
>
@@ -177,7 +177,7 @@ exports[`RecordsBriefCard tests should render with buttons 1`] = `
177177
>
178178
<Ref
179179
innerRef={
180-
Object {
180+
{
181181
"current": <button
182182
class="ui fluid icon positive button"
183183
>
@@ -192,7 +192,7 @@ exports[`RecordsBriefCard tests should render with buttons 1`] = `
192192
>
193193
<RefFindNode
194194
innerRef={
195-
Object {
195+
{
196196
"current": <button
197197
class="ui fluid icon positive button"
198198
>

src/lib/modules/Document/DocumentListEntry/__snapshots__/DocumentListEntry.test.js.snap

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@
33
exports[`should render correctly 1`] = `
44
<DocumentListEntry
55
metadata={
6-
Object {
6+
{
77
"$schema": "https://127.0.0.1:5000/schemas/documents/document-v1.0.0.json",
88
"abstract": "This is an abstract",
9-
"authors": Array [
10-
Object {
9+
"authors": [
10+
{
1111
"full_name": "Jack E. Davis",
1212
},
1313
],
14-
"circulation": Object {
14+
"circulation": {
1515
"available_items_for_loan_count": 0,
1616
},
1717
"document_type": "BOOK",
1818
"edition": "1",
19-
"eitems": Object {
20-
"hits": Array [],
19+
"eitems": {
20+
"hits": [],
2121
"total": 0,
2222
},
23-
"keywords": Object {
23+
"keywords": {
2424
"source": "X",
2525
"value": "Patata",
2626
},
27-
"languages": Array [
27+
"languages": [
2828
"en",
2929
],
3030
"pid": "13",

src/lib/modules/ESSelector/__snapshots__/HitsSearch.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports[`HitsSearch tests should load the selector component 1`] = `
66
fluid={true}
77
icon="search"
88
input={
9-
Object {
9+
{
1010
"ref": [Function],
1111
}
1212
}
@@ -19,7 +19,7 @@ exports[`HitsSearch tests should load the selector component 1`] = `
1919
onSearchChange={[Function]}
2020
open={false}
2121
resultRenderer={[Function]}
22-
results={Array []}
22+
results={[]}
2323
showNoResults={true}
2424
value=""
2525
/>

0 commit comments

Comments
 (0)