-
-
Notifications
You must be signed in to change notification settings - Fork 628
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
118 additions
and
627 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,6 @@ name: graphql | |
description: A stand-alone GraphQL client for Dart, bringing all the features from | ||
a modern GraphQL client to one easy to use package. | ||
version: 3.1.0-beta.6 | ||
authors: | ||
- Eus Dima <[email protected]> | ||
- Zino Hofmann <[email protected]> | ||
- Michael Joseph Rosenthal <[email protected]> | ||
- TruongSinh Tran-Nguyen <[email protected]> | ||
homepage: https://github.com/zino-app/graphql-flutter/tree/master/packages/graphql | ||
dependencies: | ||
meta: ^1.1.6 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import 'package:gql/language.dart'; | ||
import 'package:graphql/client.dart'; | ||
import 'package:test/test.dart'; | ||
|
||
void main() { | ||
group('FetchMoreOptions', () { | ||
group('constructs', () { | ||
final dummyUpdateQuery = (previousResultData, fetchMoreResultData) { | ||
return null; | ||
}; | ||
|
||
final document = 'query { foo }'; | ||
final documentParsed = parseString(document); | ||
|
||
final documentNode = parseString('query { bar }'); | ||
|
||
test('with documentNode', () { | ||
final options = FetchMoreOptions( | ||
documentNode: documentNode, | ||
updateQuery: dummyUpdateQuery, | ||
); | ||
expect(options.documentNode, equals(documentNode)); | ||
}); | ||
|
||
test('with document', () { | ||
final options = FetchMoreOptions( | ||
// ignore: deprecated_member_use_from_same_package | ||
document: document, | ||
updateQuery: dummyUpdateQuery, | ||
); | ||
expect(options.documentNode, equals(documentParsed)); | ||
}); | ||
|
||
test('with neither', () { | ||
final options = FetchMoreOptions( | ||
updateQuery: dummyUpdateQuery, | ||
); | ||
expect(options.documentNode, isNull); | ||
}); | ||
}); | ||
}); | ||
} |
Oops, something went wrong.