Skip to content

Commit 78192a5

Browse files
committed
Fix #169
1 parent 31e19ab commit 78192a5

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"prebuild": "yarn clean",
3030
"prepack": "",
3131
"build": "bob",
32-
"test": "jest --forceExit --runInBand && yarn bundlesize",
32+
"test": "jest --forceExit --no-watchman && yarn bundlesize",
3333
"prepare-release": "yarn build && yarn test",
3434
"release": "yarn prepare-release && bob-update-version && npm publish dist",
3535
"ci:release:canary": "node bump.js && bob-update-version && npm publish dist --tag alpha --access public",

src/resolvers/DateTime.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,6 @@ export default new GraphQLScalarType({
5757
throw new GraphQLError(`Value is not a valid Date: ${ast.value}`);
5858
}
5959

60-
if (ast.kind === Kind.STRING && ast.value !== result.toJSON()) {
61-
throw new GraphQLError(
62-
`Value is not a valid Date format (YYYY-MM-DDTHH:MM:SS.SSSZ): ${
63-
ast.value
64-
}`,
65-
);
66-
}
67-
6860
return result;
6961
},
7062
});

0 commit comments

Comments
 (0)