Skip to content

Commit

Permalink
tests update
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyokone committed Sep 12, 2024
1 parent 318e930 commit 723e870
Showing 1 changed file with 5 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,7 @@ void runGenerationTest() {
expect(ref.execute, isNotNull);
});

testWidgets(
'should have generated correct MutationRef with nested object using id',
(WidgetTester tester) async {
final ref = MoviesConnector.instance.addDirectorToMovie.ref(
movieId: 'movieId',
addDirectorToMovieVariables: AddDirectorToMovieVariables(
personId: AddDirectorToMovieVariablesPersonId(id: 'personId'),
),
);
expect(ref, isNotNull);
expect(ref.execute, isNotNull);
});

testWidgets('should have generated correct MutationRef with nested list',
testWidgets('should have generated correct MutationRef using name',
(WidgetTester tester) async {
final ref = MoviesConnector.instance.addPerson.ref(
name: 'Keanu Reeves',
Expand All @@ -69,13 +56,11 @@ void runGenerationTest() {
expect(ref.execute, isNotNull);
});

testWidgets(
'should have generated correct MutationRef with nested list using name',
testWidgets('should have generated correct MutationRef using nested id',
(WidgetTester tester) async {
final ref = MoviesConnector.instance.addPerson.ref(
addPersonVariables: AddPersonVariables(
name: 'Keanu Reeves',
),
final ref = MoviesConnector.instance.addDirectorToMovie.ref(
movieId: 'movieId',
personId: AddDirectorToMovieVariablesPersonId(id: 'personId'),
);
expect(ref, isNotNull);
expect(ref.execute, isNotNull);
Expand Down

0 comments on commit 723e870

Please sign in to comment.