@@ -17,7 +17,7 @@ describe('connectionFromArray()', () => {
17
17
describe ( 'basic slicing' , ( ) => {
18
18
it ( 'returns all elements without filters' , ( ) => {
19
19
const c = connectionFromArray ( letters , { } ) ;
20
- return expect ( c ) . to . deep . equal ( {
20
+ expect ( c ) . to . deep . equal ( {
21
21
edges : [
22
22
{
23
23
node : 'A' ,
@@ -51,7 +51,7 @@ describe('connectionFromArray()', () => {
51
51
52
52
it ( 'respects a smaller first' , ( ) => {
53
53
const c = connectionFromArray ( letters , { first : 2 } ) ;
54
- return expect ( c ) . to . deep . equal ( {
54
+ expect ( c ) . to . deep . equal ( {
55
55
edges : [
56
56
{ node : 'A' , cursor : 'YXJyYXljb25uZWN0aW9uOjA=' } ,
57
57
{
@@ -70,7 +70,7 @@ describe('connectionFromArray()', () => {
70
70
71
71
it ( 'respects an overly large first' , ( ) => {
72
72
const c = connectionFromArray ( letters , { first : 10 } ) ;
73
- return expect ( c ) . to . deep . equal ( {
73
+ expect ( c ) . to . deep . equal ( {
74
74
edges : [
75
75
{
76
76
node : 'A' ,
@@ -104,7 +104,7 @@ describe('connectionFromArray()', () => {
104
104
105
105
it ( 'respects a smaller last' , ( ) => {
106
106
const c = connectionFromArray ( letters , { last : 2 } ) ;
107
- return expect ( c ) . to . deep . equal ( {
107
+ expect ( c ) . to . deep . equal ( {
108
108
edges : [
109
109
{
110
110
node : 'D' ,
@@ -126,7 +126,7 @@ describe('connectionFromArray()', () => {
126
126
127
127
it ( 'respects an overly large last' , ( ) => {
128
128
const c = connectionFromArray ( letters , { last : 10 } ) ;
129
- return expect ( c ) . to . deep . equal ( {
129
+ expect ( c ) . to . deep . equal ( {
130
130
edges : [
131
131
{
132
132
node : 'A' ,
@@ -165,7 +165,7 @@ describe('connectionFromArray()', () => {
165
165
first : 2 ,
166
166
after : 'YXJyYXljb25uZWN0aW9uOjE=' ,
167
167
} ) ;
168
- return expect ( c ) . to . deep . equal ( {
168
+ expect ( c ) . to . deep . equal ( {
169
169
edges : [
170
170
{
171
171
node : 'C' ,
@@ -190,7 +190,7 @@ describe('connectionFromArray()', () => {
190
190
first : 10 ,
191
191
after : 'YXJyYXljb25uZWN0aW9uOjE=' ,
192
192
} ) ;
193
- return expect ( c ) . to . deep . equal ( {
193
+ expect ( c ) . to . deep . equal ( {
194
194
edges : [
195
195
{
196
196
node : 'C' ,
@@ -219,7 +219,7 @@ describe('connectionFromArray()', () => {
219
219
last : 2 ,
220
220
before : 'YXJyYXljb25uZWN0aW9uOjM=' ,
221
221
} ) ;
222
- return expect ( c ) . to . deep . equal ( {
222
+ expect ( c ) . to . deep . equal ( {
223
223
edges : [
224
224
{
225
225
node : 'B' ,
@@ -244,7 +244,7 @@ describe('connectionFromArray()', () => {
244
244
last : 10 ,
245
245
before : 'YXJyYXljb25uZWN0aW9uOjM=' ,
246
246
} ) ;
247
- return expect ( c ) . to . deep . equal ( {
247
+ expect ( c ) . to . deep . equal ( {
248
248
edges : [
249
249
{
250
250
node : 'A' ,
@@ -274,7 +274,7 @@ describe('connectionFromArray()', () => {
274
274
after : 'YXJyYXljb25uZWN0aW9uOjA=' ,
275
275
before : 'YXJyYXljb25uZWN0aW9uOjQ=' ,
276
276
} ) ;
277
- return expect ( c ) . to . deep . equal ( {
277
+ expect ( c ) . to . deep . equal ( {
278
278
edges : [
279
279
{
280
280
node : 'B' ,
@@ -300,7 +300,7 @@ describe('connectionFromArray()', () => {
300
300
after : 'YXJyYXljb25uZWN0aW9uOjA=' ,
301
301
before : 'YXJyYXljb25uZWN0aW9uOjQ=' ,
302
302
} ) ;
303
- return expect ( c ) . to . deep . equal ( {
303
+ expect ( c ) . to . deep . equal ( {
304
304
edges : [
305
305
{
306
306
node : 'B' ,
@@ -330,7 +330,7 @@ describe('connectionFromArray()', () => {
330
330
after : 'YXJyYXljb25uZWN0aW9uOjA=' ,
331
331
before : 'YXJyYXljb25uZWN0aW9uOjQ=' ,
332
332
} ) ;
333
- return expect ( c ) . to . deep . equal ( {
333
+ expect ( c ) . to . deep . equal ( {
334
334
edges : [
335
335
{
336
336
node : 'B' ,
@@ -360,7 +360,7 @@ describe('connectionFromArray()', () => {
360
360
after : 'YXJyYXljb25uZWN0aW9uOjA=' ,
361
361
before : 'YXJyYXljb25uZWN0aW9uOjQ=' ,
362
362
} ) ;
363
- return expect ( c ) . to . deep . equal ( {
363
+ expect ( c ) . to . deep . equal ( {
364
364
edges : [
365
365
{
366
366
node : 'C' ,
@@ -386,7 +386,7 @@ describe('connectionFromArray()', () => {
386
386
after : 'YXJyYXljb25uZWN0aW9uOjA=' ,
387
387
before : 'YXJyYXljb25uZWN0aW9uOjQ=' ,
388
388
} ) ;
389
- return expect ( c ) . to . deep . equal ( {
389
+ expect ( c ) . to . deep . equal ( {
390
390
edges : [
391
391
{
392
392
node : 'B' ,
@@ -416,7 +416,7 @@ describe('connectionFromArray()', () => {
416
416
after : 'YXJyYXljb25uZWN0aW9uOjA=' ,
417
417
before : 'YXJyYXljb25uZWN0aW9uOjQ=' ,
418
418
} ) ;
419
- return expect ( c ) . to . deep . equal ( {
419
+ expect ( c ) . to . deep . equal ( {
420
420
edges : [
421
421
{
422
422
node : 'B' ,
@@ -459,7 +459,7 @@ describe('connectionFromArray()', () => {
459
459
before : 'invalid' ,
460
460
after : 'invalid' ,
461
461
} ) ;
462
- return expect ( c ) . to . deep . equal ( {
462
+ expect ( c ) . to . deep . equal ( {
463
463
edges : [
464
464
{
465
465
node : 'A' ,
@@ -496,7 +496,7 @@ describe('connectionFromArray()', () => {
496
496
before : 'YXJyYXljb25uZWN0aW9uOjYK' ,
497
497
after : 'YXJyYXljb25uZWN0aW9uOi0xCg==' ,
498
498
} ) ;
499
- return expect ( c ) . to . deep . equal ( {
499
+ expect ( c ) . to . deep . equal ( {
500
500
edges : [
501
501
{
502
502
node : 'A' ,
@@ -533,7 +533,7 @@ describe('connectionFromArray()', () => {
533
533
before : 'YXJyYXljb25uZWN0aW9uOjI=' ,
534
534
after : 'YXJyYXljb25uZWN0aW9uOjQ=' ,
535
535
} ) ;
536
- return expect ( c ) . to . deep . equal ( {
536
+ expect ( c ) . to . deep . equal ( {
537
537
edges : [ ] ,
538
538
pageInfo : {
539
539
startCursor : null ,
@@ -548,12 +548,12 @@ describe('connectionFromArray()', () => {
548
548
describe ( 'cursorForObjectInConnection()' , ( ) => {
549
549
it ( "returns an edge's cursor, given an array and a member object" , ( ) => {
550
550
const letterBCursor = cursorForObjectInConnection ( letters , 'B' ) ;
551
- return expect ( letterBCursor ) . to . equal ( 'YXJyYXljb25uZWN0aW9uOjE=' ) ;
551
+ expect ( letterBCursor ) . to . equal ( 'YXJyYXljb25uZWN0aW9uOjE=' ) ;
552
552
} ) ;
553
553
554
554
it ( 'returns null, given an array and a non-member object' , ( ) => {
555
555
const letterFCursor = cursorForObjectInConnection ( letters , 'F' ) ;
556
- return expect ( letterFCursor ) . to . be . null ;
556
+ expect ( letterFCursor ) . to . equal ( null ) ;
557
557
} ) ;
558
558
} ) ;
559
559
} ) ;
@@ -563,7 +563,7 @@ describe('connectionFromPromisedArray()', () => {
563
563
564
564
it ( 'returns all elements without filters' , async ( ) => {
565
565
const c = await connectionFromPromisedArray ( letters , { } ) ;
566
- return expect ( c ) . to . deep . equal ( {
566
+ expect ( c ) . to . deep . equal ( {
567
567
edges : [
568
568
{
569
569
node : 'A' ,
@@ -597,7 +597,7 @@ describe('connectionFromPromisedArray()', () => {
597
597
598
598
it ( 'respects a smaller first' , async ( ) => {
599
599
const c = await connectionFromPromisedArray ( letters , { first : 2 } ) ;
600
- return expect ( c ) . to . deep . equal ( {
600
+ expect ( c ) . to . deep . equal ( {
601
601
edges : [
602
602
{ node : 'A' , cursor : 'YXJyYXljb25uZWN0aW9uOjA=' } ,
603
603
{
@@ -630,7 +630,7 @@ describe('connectionFromArraySlice()', () => {
630
630
arrayLength : 5 ,
631
631
} ,
632
632
) ;
633
- return expect ( c ) . to . deep . equal ( {
633
+ expect ( c ) . to . deep . equal ( {
634
634
edges : [
635
635
{
636
636
node : 'B' ,
@@ -662,7 +662,7 @@ describe('connectionFromArraySlice()', () => {
662
662
arrayLength : 5 ,
663
663
} ,
664
664
) ;
665
- return expect ( c ) . to . deep . equal ( {
665
+ expect ( c ) . to . deep . equal ( {
666
666
edges : [
667
667
{
668
668
node : 'B' ,
@@ -694,7 +694,7 @@ describe('connectionFromArraySlice()', () => {
694
694
arrayLength : 5 ,
695
695
} ,
696
696
) ;
697
- return expect ( c ) . to . deep . equal ( {
697
+ expect ( c ) . to . deep . equal ( {
698
698
edges : [
699
699
{
700
700
node : 'C' ,
@@ -722,7 +722,7 @@ describe('connectionFromArraySlice()', () => {
722
722
arrayLength : 5 ,
723
723
} ,
724
724
) ;
725
- return expect ( c ) . to . deep . equal ( {
725
+ expect ( c ) . to . deep . equal ( {
726
726
edges : [
727
727
{
728
728
node : 'C' ,
@@ -750,7 +750,7 @@ describe('connectionFromArraySlice()', () => {
750
750
arrayLength : 5 ,
751
751
} ,
752
752
) ;
753
- return expect ( c ) . to . deep . equal ( {
753
+ expect ( c ) . to . deep . equal ( {
754
754
edges : [
755
755
{
756
756
node : 'D' ,
@@ -782,7 +782,7 @@ describe('connectionFromArraySlice()', () => {
782
782
arrayLength : 5 ,
783
783
} ,
784
784
) ;
785
- return expect ( c ) . to . deep . equal ( {
785
+ expect ( c ) . to . deep . equal ( {
786
786
edges : [
787
787
{
788
788
node : 'C' ,
@@ -814,7 +814,7 @@ describe('connectionFromArraySlice()', () => {
814
814
arrayLength : 5 ,
815
815
} ,
816
816
) ;
817
- return expect ( c ) . to . deep . equal ( {
817
+ expect ( c ) . to . deep . equal ( {
818
818
edges : [
819
819
{
820
820
node : 'D' ,
@@ -842,7 +842,7 @@ describe('connectionFromPromisedArraySlice()', () => {
842
842
arrayLength : 5 ,
843
843
} ,
844
844
) ;
845
- return expect ( c ) . to . deep . equal ( {
845
+ expect ( c ) . to . deep . equal ( {
846
846
edges : [
847
847
{ node : 'A' , cursor : 'YXJyYXljb25uZWN0aW9uOjA=' } ,
848
848
{
0 commit comments