Skip to content

Commit

Permalink
Fix Windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimvh authored and rubensworks committed Jan 14, 2021
1 parent af0b244 commit 8d93eda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/parse/ClassFinder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export {A};
[Path.normalize('package-simple-named/index.d.ts')]: `export {A as B} from './lib/A';`,
[Path.normalize('package-simple-named/lib/A.d.ts')]: 'export class A {}',
};
expect(await parser.getPackageExports('package-simple-named/index'))
expect(await parser.getPackageExports(Path.normalize('package-simple-named/index')))
.toEqual({
B: {
fileName: Path.normalize('package-simple-named/lib/A'),
Expand All @@ -235,7 +235,7 @@ export {A};
[Path.normalize('package-simple-unnamed/index.d.ts')]: `export * from './lib/A';`,
[Path.normalize('package-simple-unnamed/lib/A.d.ts')]: 'export class A {}',
};
expect(await parser.getPackageExports('package-simple-unnamed/index'))
expect(await parser.getPackageExports(Path.normalize('package-simple-unnamed/index')))
.toEqual({
A: {
fileName: Path.normalize('package-simple-unnamed/lib/A'),
Expand All @@ -253,7 +253,7 @@ export * from './lib/C';
[Path.normalize('package-multiple/lib/A.d.ts')]: 'export class A {}',
[Path.normalize('package-multiple/lib/C.d.ts')]: 'export class C {}',
};
expect(await parser.getPackageExports('package-multiple/index'))
expect(await parser.getPackageExports(Path.normalize('package-multiple/index')))
.toEqual({
B: {
fileName: Path.normalize('package-multiple/lib/A'),
Expand All @@ -276,7 +276,7 @@ export * from './sub2/C'
[Path.normalize('package-nested/lib/sub1/B.d.ts')]: 'export class B {}',
[Path.normalize('package-nested/lib/sub2/C.d.ts')]: 'export class C {}',
};
expect(await parser.getPackageExports('package-nested/index'))
expect(await parser.getPackageExports(Path.normalize('package-nested/index')))
.toEqual({
B: {
fileName: Path.normalize('package-nested/lib/sub1/B'),
Expand Down
2 changes: 1 addition & 1 deletion test/serialize/ComponentConstructor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,7 @@ describe('ComponentConstructor', () => {
const subParamData: ParameterData<ParameterRangeResolved> = (<any> parameterData).range.value[0];
expect(() => ctor
.constructFieldDefinitionNested(context, classReference, parameterData, parameters, subParamData, '', scope))
.toThrow(new Error(`Detected illegal indexed element inside a non-field in MyClass at /docs/package/src/a/b/file-param`));
.toThrow(new Error(`Detected illegal indexed element inside a non-field in MyClass at ${Path.normalize('/docs/package/src/a/b/file-param')}`));
});
});

Expand Down

0 comments on commit 8d93eda

Please sign in to comment.