Skip to content

Commit

Permalink
Fixed failing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ArinNigam committed Apr 15, 2024
1 parent 9e0b318 commit af9da4f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
7 changes: 6 additions & 1 deletion test/utils_tests/queries_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ void main() {
expect(mutation, false);

final fnData = Queries().registerUser(
'Ayush', 'Chaudhary', '[email protected]', 'password', 'orgId123');
'Ayush',
'Chaudhary',
'[email protected]',
'password',
'orgId123',
);
if (fnData.contains('Ayush')) {
mutation = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,15 @@ void main() {
source: QueryResultSource.network,
data: data,
options: QueryOptions(
document: gql(queries.registerUser('', '', '', '')),
document: gql(
queries.registerUser('', '', '', '', ''),
),
),
);
when(graphqlConfig.getToken()).thenAnswer((_) async => true);
when(
databaseFunctions.gqlNonAuthMutation(
queries.registerUser('', '', '', ''),
queries.registerUser('', '', '', '', ''),
),
).thenAnswer((_) async => result);
when(databaseFunctions.gqlAuthMutation(queries.joinOrgById(org.id!)))
Expand All @@ -435,7 +437,7 @@ void main() {
verify(databaseFunctions.gqlAuthMutation(queries.joinOrgById(org.id!)));
verify(
databaseFunctions.gqlNonAuthMutation(
queries.registerUser('', '', '', ''),
queries.registerUser('', '', '', '', ''),
),
);
verifyNever(
Expand Down Expand Up @@ -478,13 +480,15 @@ void main() {
source: QueryResultSource.network,
data: data,
options: QueryOptions(
document: gql(queries.registerUser('', '', '', '')),
document: gql(
queries.registerUser('', '', '', '', ''),
),
),
);
when(graphqlConfig.getToken()).thenAnswer((_) async => true);
when(
databaseFunctions.gqlNonAuthMutation(
queries.registerUser('', '', '', ''),
queries.registerUser('', '', '', '', ''),
),
).thenAnswer((_) async => result);
when(
Expand All @@ -503,7 +507,7 @@ void main() {
);
verify(
databaseFunctions.gqlNonAuthMutation(
queries.registerUser('', '', '', ''),
queries.registerUser('', '', '', '', ''),
),
);
verifyNever(
Expand Down

0 comments on commit af9da4f

Please sign in to comment.