Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Windows tests #55

Merged
merged 1 commit into from
Jan 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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