Skip to content

Commit 69857f5

Browse files
test: Fix test for createAiExtractStructured method (box/box-codegen#618) (#430)
1 parent 991dc29 commit 69857f5

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "f6ccea9", "specHash": "6d5f53e", "version": "1.7.0" }
1+
{ "engineHash": "1c0a1c0", "specHash": "544d370", "version": "1.7.0" }

jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ module.exports = {
99
],
1010
testPathIgnorePatterns: ['/node_modules/'],
1111
transform: {
12-
'^.+.tsx?$': [
12+
'^.+\.tsx?$': [
1313
'ts-jest',
1414
{
1515
tsconfig: 'tsconfig.test.json',
1616
},
1717
],
1818
},
1919
moduleNameMapper: {
20-
'^(..?/.+)\\.jsx?$': '$1',
20+
'^(\.\.?\/.+)\\.jsx?$': '$1',
2121
},
2222
clearMocks: true,
2323
setupFilesAfterEnv: ['<rootDir>/setup-jest.js'],

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/test/ai.generated.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ test('testAIExtractStructuredWithMetadataTemplate', async function testAIExtract
493493
!(
494494
(toString(
495495
getValueFromObjectRawData(response, 'dateOfBirth'),
496-
) as string) == '1990-07-04'
496+
) as string) == '1990-07-04T00:00:00Z'
497497
)
498498
) {
499499
throw new Error('Assertion failed');

0 commit comments

Comments
 (0)