Skip to content

Commit be9b3f7

Browse files
Copilotpetehauge
andauthored
refactor: remove redundant test assertions flagged in code review
Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/8b196bc2-81c8-4320-9a60-c3655ee4b3bc Co-authored-by: petehauge <12090616+petehauge@users.noreply.github.com>
1 parent 6d0782f commit be9b3f7

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

‎tests/unit/lib/user-agent.test.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import { USER_AGENT } from '../../../src/lib/user-agent.js';
88
describe('USER_AGENT', () => {
99
it('should be a string', () => {
1010
expect(typeof USER_AGENT).toBe('string');
11-
expect(USER_AGENT).toBeDefined();
12-
expect(USER_AGENT).not.toBeNull();
1311
});
1412

1513
it('should start with "apiops-cli/"', () => {

‎tests/unit/services/keyvault-checker.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,6 @@ describe('defaultArmRequest User-Agent header', () => {
629629
const [_url, init] = call as [string, RequestInit];
630630
const headers = new Headers(init?.headers);
631631
expect(headers.get('User-Agent')).toBe(USER_AGENT);
632-
expect(headers.get('User-Agent')).toMatch(/^apiops-cli\/\d+\.\d+\.\d+/);
633632
}
634633
});
635634
});

0 commit comments

Comments
 (0)