Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scalars-test: improve typings of function calls #2948

Merged
merged 1 commit into from Mar 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/type/__tests__/scalars-test.js
Expand Up @@ -66,7 +66,7 @@ describe('Type System: Specified scalar types', () => {

it('parseLiteral', () => {
function parseLiteral(str: string) {
return GraphQLInt.parseLiteral(parseValueToAST(str));
return GraphQLInt.parseLiteral(parseValueToAST(str), undefined);
}

expect(parseLiteral('1')).to.equal(1);
Expand Down Expand Up @@ -231,7 +231,7 @@ describe('Type System: Specified scalar types', () => {

it('parseLiteral', () => {
function parseLiteral(str: string) {
return GraphQLFloat.parseLiteral(parseValueToAST(str));
return GraphQLFloat.parseLiteral(parseValueToAST(str), undefined);
}

expect(parseLiteral('1')).to.equal(1);
Expand Down Expand Up @@ -344,7 +344,7 @@ describe('Type System: Specified scalar types', () => {

it('parseLiteral', () => {
function parseLiteral(str: string) {
return GraphQLString.parseLiteral(parseValueToAST(str));
return GraphQLString.parseLiteral(parseValueToAST(str), undefined);
}

expect(parseLiteral('"foo"')).to.equal('foo');
Expand Down Expand Up @@ -456,7 +456,7 @@ describe('Type System: Specified scalar types', () => {

it('parseLiteral', () => {
function parseLiteral(str: string) {
return GraphQLBoolean.parseLiteral(parseValueToAST(str));
return GraphQLBoolean.parseLiteral(parseValueToAST(str), undefined);
}

expect(parseLiteral('true')).to.equal(true);
Expand Down Expand Up @@ -571,7 +571,7 @@ describe('Type System: Specified scalar types', () => {

it('parseLiteral', () => {
function parseLiteral(str: string) {
return GraphQLID.parseLiteral(parseValueToAST(str));
return GraphQLID.parseLiteral(parseValueToAST(str), undefined);
}

expect(parseLiteral('""')).to.equal('');
Expand Down