Skip to content

Commit

Permalink
scalars-test: improve typings of function calls (#2948)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Mar 10, 2021
1 parent fe9ea6d commit 1df295e
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 1df295e

Please sign in to comment.