Skip to content

Commit

Permalink
[test] Fix buildApiUtils tests on Windows (#30698)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak authored Jan 20, 2022
1 parent 204f00a commit 97d32b0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/scripts/buildApiUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ describe('buildApiUtils', () => {
name: 'Button',
apiPathname: '/api/button/',
muiName: 'MuiButton',
apiPagesDirectory: sinon.match((value) => value.endsWith('docs/pages/api-docs')),
apiPagesDirectory: sinon.match((value) =>
value.endsWith(`docs${path.sep}pages${path.sep}api-docs`),
),
});

expect(info.getInheritance('ButtonBase')).to.deep.equal({
Expand Down Expand Up @@ -122,7 +124,9 @@ describe('buildApiUtils', () => {
name: 'Icon',
apiPathname: '/api/icon/',
muiName: 'MuiIcon',
apiPagesDirectory: sinon.match((value) => value.endsWith('docs/pages/api-docs')),
apiPagesDirectory: sinon.match((value) =>
value.endsWith(`docs${path.sep}pages${path.sep}api-docs`),
),
});

expect(info.getDemos()).to.deep.equal([
Expand Down

0 comments on commit 97d32b0

Please sign in to comment.