Skip to content

Commit

Permalink
Expanded tests for lib/utils/queries.dart (#2184)
Browse files Browse the repository at this point in the history
* Update queries_test.dart

* Revert "Update queries_test.dart"

This reverts commit c455d60.

* Revert "Revert "Update queries_test.dart""

This reverts commit 659845d.

* Update queries_test.dart

* correcting formatting
  • Loading branch information
cmaustQA authored Dec 1, 2023
1 parent 303f922 commit 004b014
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/utils_tests/queries_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -214,5 +214,17 @@ void main() {
}
expect(mutation, true);
});
test("Check if updateUserProfile works correctly", () {
var mutation = false;
expect(mutation, false);

final fnData = Queries().updateUserProfile();

if (fnData.contains('mutation UpdateUserProfile') &&
fnData.contains('updateUserProfile')) {
mutation = true;
}
expect(mutation, true);
});
});
}

0 comments on commit 004b014

Please sign in to comment.