Skip to content

Commit

Permalink
support docker-desktop version in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-Symbroson committed Mar 13, 2024
1 parent 6275845 commit f1e9620
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/v1/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ test('removes container', async (): Promise<void> => {
test('returns version information', async (): Promise<void> => {
const version = (await compose.version()).data.version

expect(version).toMatch(/^(\d+\.)?(\d+\.)?(\*|\d+)$/)
expect(version).toMatch(/^(\d+\.)?(\d+\.)?(\*|\d+)?(\+.*)*(-\w+(\.\d+))?$/)
})

test('parse ps output', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/v2/compose.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ describe('version command', (): void => {
it('returns version information', async (): Promise<void> => {
const version = (await compose.version()).data.version

expect(version).toMatch(/^(\d+\.)?(\d+\.)?(\*|\d+)?(\+.*)*$/)
expect(version).toMatch(/^(\d+\.)?(\d+\.)?(\*|\d+)?(\+.*)*(-\w+(\.\d+))?$/)
})
})

Expand Down

0 comments on commit f1e9620

Please sign in to comment.