Skip to content

Commit a49430e

Browse files
author
Vedant Jaiswal
committed
Using regex for user agent test
1 parent 2b1f8d2 commit a49430e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

__tests__/utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ describe('Version Constants', () => {
463463

464464
it('should return user agent with version', () => {
465465
const userAgent = getUserAgent();
466-
expect(userAgent).toBe(`github-action/${ACTION_VERSION}`);
466+
expect(userAgent).toMatch(/^github-action\/v\d+\.\d+\.\d+$/);
467467
});
468468
});
469469

0 commit comments

Comments
 (0)