Skip to content

Commit

Permalink
test: path patching attempt I
Browse files Browse the repository at this point in the history
  • Loading branch information
toomuchdesign committed Mar 4, 2024
1 parent 0ea5d52 commit e98dfd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ describe('openapiToTsJsonSchema', () => {
});

const januarySchema = await import(
path.resolve(outputPath, 'components/months/January')
path.resolve(outputPath, 'components', 'months', 'January')
);
const februarySchema = await import(
path.resolve(outputPath, 'components/months/February')
path.resolve(outputPath, 'components', 'months', 'February')
);

// definition paths get escaped
const path1 = await import(path.resolve(outputPath, 'paths/v1_path-1'));
const path1 = await import(path.resolve(outputPath, 'paths', 'v1_path-1'));

expect(januarySchema.default).toEqual({
description: 'January description',
Expand Down

0 comments on commit e98dfd7

Please sign in to comment.