Skip to content

Commit 1df295e

Browse files
scalars-test: improve typings of function calls (#2948)
1 parent fe9ea6d commit 1df295e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/type/__tests__/scalars-test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describe('Type System: Specified scalar types', () => {
6666

6767
it('parseLiteral', () => {
6868
function parseLiteral(str: string) {
69-
return GraphQLInt.parseLiteral(parseValueToAST(str));
69+
return GraphQLInt.parseLiteral(parseValueToAST(str), undefined);
7070
}
7171

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

232232
it('parseLiteral', () => {
233233
function parseLiteral(str: string) {
234-
return GraphQLFloat.parseLiteral(parseValueToAST(str));
234+
return GraphQLFloat.parseLiteral(parseValueToAST(str), undefined);
235235
}
236236

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

345345
it('parseLiteral', () => {
346346
function parseLiteral(str: string) {
347-
return GraphQLString.parseLiteral(parseValueToAST(str));
347+
return GraphQLString.parseLiteral(parseValueToAST(str), undefined);
348348
}
349349

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

457457
it('parseLiteral', () => {
458458
function parseLiteral(str: string) {
459-
return GraphQLBoolean.parseLiteral(parseValueToAST(str));
459+
return GraphQLBoolean.parseLiteral(parseValueToAST(str), undefined);
460460
}
461461

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

572572
it('parseLiteral', () => {
573573
function parseLiteral(str: string) {
574-
return GraphQLID.parseLiteral(parseValueToAST(str));
574+
return GraphQLID.parseLiteral(parseValueToAST(str), undefined);
575575
}
576576

577577
expect(parseLiteral('""')).to.equal('');

0 commit comments

Comments
 (0)