Skip to content

Commit

Permalink
chore: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Nov 12, 2024
1 parent aede4e4 commit 90455b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/commands/build/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ describe('Build command', () => {

describe('input', () => {
test('should be absolute', '--input ./input', {
input: expect.stringMatching(/^\/.*?\/input$/),
input: expect.stringMatching(/^(\/|[A-Z]:\\).*?(\/|\\)input$/),
});
});

describe('output', () => {
test('should be absolute', '--output ./output', {
output: expect.stringMatching(/^\/.*?\/output$/),
output: expect.stringMatching(/^(\/|[A-Z]:\\).*?(\/|\\)output$/),
});
});

Expand Down
4 changes: 2 additions & 2 deletions src/commands/translate/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ describe('Translate command', () => {
expect(instance.provider?.translate).toBeCalledWith(
expect.anything(),
expect.objectContaining({
input: expect.stringMatching(/^\//),
output: expect.stringMatching(/^\//),
input: expect.stringMatching(/^(\/|[A-Z]:\\).*?/),
output: expect.stringMatching(/^(\/|[A-Z]:\\).*?/),
}),
);
});
Expand Down

0 comments on commit 90455b3

Please sign in to comment.