Skip to content

Commit

Permalink
chore: update jest typings
Browse files Browse the repository at this point in the history
Closes #1145
  • Loading branch information
B4nan committed Dec 2, 2020
1 parent 4143463 commit 2f9498f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"@mikro-orm/sql-highlighter": "1.0.1",
"@types/clone": "2.1.0",
"@types/fs-extra": "9.0.4",
"@types/jest": "26.0.15",
"@types/jest": "26.0.16",
"@types/mysql2": "types/mysql2#d4ef3b2292f328049f7e4c545f6adab7d6a350a9",
"@types/node": "14.14.10",
"@types/pg": "7.14.7",
Expand Down
2 changes: 1 addition & 1 deletion tests/types/ArrayType.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('ArrayType', () => {
const platform = new MongoPlatform();

test('convertToDatabaseValue', () => {
expect(type.convertToDatabaseValue(['a'], platform)).toStrictEqual(['a']);
expect(type.convertToDatabaseValue(['a'], platform)).toStrictEqual(['a'] as any);
expect(type.convertToDatabaseValue(null, platform)).toStrictEqual(null);
expect(type.convertToDatabaseValue(undefined as any, platform)).toBe(undefined);
expect(() => type.convertToDatabaseValue(1 as any, platform)).toThrowError(`Could not convert JS value '1' of type 'number' to type ArrayType`);
Expand Down
10 changes: 9 additions & 1 deletion yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2f9498f

Please sign in to comment.