Skip to content

Commit 94d9147

Browse files
committed
remove length checks
1 parent 07ba1e1 commit 94d9147

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

test/integration/data-connect.spec.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ describe('getDataConnect()', () => {
318318
it('executeGraphql() successfully executes a GraphQL query', async () => {
319319
const resp = await getDataConnect(connectorConfig)
320320
.executeGraphql<ListUsersResponse, unknown>(queryListUsers);
321-
expect(resp.data.users.length).to.equal(initialState.users.length);
322321
resp.data.users.forEach((user) => {
323322
expect(initialState.users).to.deep.include(user);
324323
});
@@ -350,7 +349,6 @@ describe('getDataConnect()', () => {
350349
it('executeGraphqlRead() successfully executes a read-only GraphQL', async () => {
351350
const resp = await getDataConnect(connectorConfig)
352351
.executeGraphqlRead<ListUsersResponse, unknown>(queryListUsers);
353-
expect(resp.data.users.length).to.equal(initialState.users.length);
354352
resp.data.users.forEach((user) => {
355353
expect(initialState.users).to.deep.include(user);
356354
});
@@ -430,7 +428,6 @@ describe('getDataConnect()', () => {
430428
it('executeGraphql() successfully executes an impersonated query with authenticated claims', async () => {
431429
const resp = await getDataConnect(connectorConfig).executeGraphql<ListUsersResponse, unknown>(
432430
queryListUsers, optsAuthorizedFredClaims);
433-
expect(resp.data.users.length).to.equal(initialState.users.length);
434431
resp.data.users.forEach((user) => {
435432
expect(initialState.users).to.deep.include(user);
436433
});
@@ -439,7 +436,6 @@ describe('getDataConnect()', () => {
439436
it('executeGraphql() successfully executes an impersonated query with unauthenticated claims', async () => {
440437
const resp = await getDataConnect(connectorConfig).executeGraphql<ListUsersResponse, unknown>(
441438
queryListUsers, optsUnauthorizedClaims);
442-
expect(resp.data.users.length).to.equal(initialState.users.length);
443439
resp.data.users.forEach((user) => {
444440
expect(initialState.users).to.deep.include(user);
445441
});
@@ -449,7 +445,6 @@ describe('getDataConnect()', () => {
449445
async () => {
450446
const resp = await getDataConnect(connectorConfig).executeGraphql<ListUsersResponse, unknown>(
451447
queryListUsers, optsNonExistingClaims);
452-
expect(resp.data.users.length).to.equal(initialState.users.length);
453448
resp.data.users.forEach((user) => {
454449
expect(initialState.users).to.deep.include(user);
455450
});
@@ -501,7 +496,6 @@ describe('getDataConnect()', () => {
501496
undefined,
502497
optsUnauthorizedClaims
503498
);
504-
expect(resp.data.users.length).to.equal(initialState.users.length);
505499
resp.data.users.forEach((user) => {
506500
expect(initialState.users).to.deep.include(user);
507501
});
@@ -537,7 +531,6 @@ describe('getDataConnect()', () => {
537531
const resp = await getDataConnect(connectorConfig).executeQuery<ListUsersResponse, undefined>(
538532
'ListUsersPublic', undefined, optsAuthorizedFredAnonClaims
539533
);
540-
expect(resp.data.users.length).to.equal(initialState.users.length);
541534
resp.data.users.forEach((user) => {
542535
expect(initialState.users).to.deep.include(user);
543536
});
@@ -547,7 +540,6 @@ describe('getDataConnect()', () => {
547540
const resp = await getDataConnect(connectorConfig).executeQuery<ListUsersResponse, undefined>(
548541
'ListUsersUserAnon', undefined, optsAuthorizedFredAnonClaims
549542
);
550-
expect(resp.data.users.length).to.equal(initialState.users.length);
551543
resp.data.users.forEach((user) => {
552544
expect(initialState.users).to.deep.include(user);
553545
});
@@ -585,7 +577,6 @@ describe('getDataConnect()', () => {
585577
const resp = await getDataConnect(connectorConfig).executeQuery<ListUsersResponse, undefined>(
586578
'ListUsersPublic', undefined, optsAuthorizedFredClaims
587579
);
588-
expect(resp.data.users.length).to.equal(initialState.users.length);
589580
resp.data.users.forEach((user) => {
590581
expect(initialState.users).to.deep.include(user);
591582
});
@@ -595,7 +586,6 @@ describe('getDataConnect()', () => {
595586
const resp = await getDataConnect(connectorConfig).executeQuery<ListUsersResponse, undefined>(
596587
'ListUsersUserAnon', undefined, optsAuthorizedFredClaims
597588
);
598-
expect(resp.data.users.length).to.equal(initialState.users.length);
599589
resp.data.users.forEach((user) => {
600590
expect(initialState.users).to.deep.include(user);
601591
});
@@ -605,7 +595,6 @@ describe('getDataConnect()', () => {
605595
const resp = await getDataConnect(connectorConfig).executeQuery<ListUsersResponse, undefined>(
606596
'ListUsersUser', undefined, optsAuthorizedFredClaims
607597
);
608-
expect(resp.data.users.length).to.equal(initialState.users.length);
609598
resp.data.users.forEach((user) => {
610599
expect(initialState.users).to.deep.include(user);
611600
});
@@ -637,7 +626,6 @@ describe('getDataConnect()', () => {
637626
const resp = await getDataConnect(connectorConfig).executeQuery<ListUsersResponse, undefined>(
638627
'ListUsersPublic', undefined, optsAuthorizedFredEmailVerifiedClaims
639628
);
640-
expect(resp.data.users.length).to.equal(initialState.users.length);
641629
resp.data.users.forEach((user) => {
642630
expect(initialState.users).to.deep.include(user);
643631
});
@@ -647,7 +635,6 @@ describe('getDataConnect()', () => {
647635
const resp = await getDataConnect(connectorConfig).executeQuery<ListUsersResponse, undefined>(
648636
'ListUsersUserAnon', undefined, optsAuthorizedFredEmailVerifiedClaims
649637
);
650-
expect(resp.data.users.length).to.equal(initialState.users.length);
651638
resp.data.users.forEach((user) => {
652639
expect(initialState.users).to.deep.include(user);
653640
});
@@ -657,7 +644,6 @@ describe('getDataConnect()', () => {
657644
const resp = await getDataConnect(connectorConfig).executeQuery<ListUsersResponse, undefined>(
658645
'ListUsersUser', undefined, optsAuthorizedFredEmailVerifiedClaims
659646
);
660-
expect(resp.data.users.length).to.equal(initialState.users.length);
661647
resp.data.users.forEach((user) => {
662648
expect(initialState.users).to.deep.include(user);
663649
});
@@ -667,7 +653,6 @@ describe('getDataConnect()', () => {
667653
const resp = await getDataConnect(connectorConfig).executeQuery<ListUsersResponse, undefined>(
668654
'ListUsersUserEmailVerified', undefined, optsAuthorizedFredEmailVerifiedClaims
669655
);
670-
expect(resp.data.users.length).to.equal(initialState.users.length);
671656
resp.data.users.forEach((user) => {
672657
expect(initialState.users).to.deep.include(user);
673658
});
@@ -693,7 +678,6 @@ describe('getDataConnect()', () => {
693678
const resp = await getDataConnect(connectorConfig).executeQuery<ListUsersResponse>(
694679
'ListUsersPublic'
695680
);
696-
expect(resp.data.users.length).to.equal(initialState.users.length);
697681
resp.data.users.forEach((user) => {
698682
expect(initialState.users).to.deep.include(user);
699683
});
@@ -703,7 +687,6 @@ describe('getDataConnect()', () => {
703687
const resp = await getDataConnect(connectorConfig).executeQuery<ListUsersResponse>(
704688
'ListUsersUserAnon'
705689
);
706-
expect(resp.data.users.length).to.equal(initialState.users.length);
707690
resp.data.users.forEach((user) => {
708691
expect(initialState.users).to.deep.include(user);
709692
});
@@ -713,7 +696,6 @@ describe('getDataConnect()', () => {
713696
const resp = await getDataConnect(connectorConfig).executeQuery<ListUsersResponse>(
714697
'ListUsersUser'
715698
);
716-
expect(resp.data.users.length).to.equal(initialState.users.length);
717699
resp.data.users.forEach((user) => {
718700
expect(initialState.users).to.deep.include(user);
719701
});
@@ -723,7 +705,6 @@ describe('getDataConnect()', () => {
723705
const resp = await getDataConnect(connectorConfig).executeQuery<ListUsersResponse>(
724706
'ListUsersUserEmailVerified'
725707
);
726-
expect(resp.data.users.length).to.equal(initialState.users.length);
727708
resp.data.users.forEach((user) => {
728709
expect(initialState.users).to.deep.include(user);
729710
});
@@ -733,7 +714,6 @@ describe('getDataConnect()', () => {
733714
const resp = await getDataConnect(connectorConfig).executeQuery<ListUsersResponse>(
734715
'ListUsersNoAccess'
735716
);
736-
expect(resp.data.users.length).to.equal(initialState.users.length);
737717
resp.data.users.forEach((user) => {
738718
expect(initialState.users).to.deep.include(user);
739719
});

0 commit comments

Comments
 (0)