Skip to content

Commit 9723c02

Browse files
committed
Merge branch '1150-vitest-migration-from-service' of https://github.com/jescalada/git-proxy into 1150-vitest-migration-from-service
2 parents 5ae5c50 + 5327e28 commit 9723c02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/generated-config.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('Generated Config (QuickType)', () => {
3434
expect(result).toBeTypeOf('object');
3535
expect(result.proxyUrl).toBe('https://proxy.example.com');
3636
expect(result.cookieSecret).toBe('test-secret');
37-
expect(Array.isArray(result.authorisedList)).toBe(true);
37+
assert.isArray(result.authorisedList);
3838
expect(Array.isArray(result.authentication)).toBe(true);
3939
expect(Array.isArray(result.sink)).toBe(true);
4040
});
@@ -55,7 +55,7 @@ describe('Generated Config (QuickType)', () => {
5555
const jsonString = Convert.gitProxyConfigToJson(configObject);
5656
const parsed = JSON.parse(jsonString);
5757

58-
expect(parsed).toBeTypeOf('object');
58+
assert.isObject(parsed);
5959
expect(parsed.proxyUrl).toBe('https://proxy.example.com');
6060
expect(parsed.cookieSecret).toBe('test-secret');
6161
});
@@ -120,7 +120,7 @@ describe('Generated Config (QuickType)', () => {
120120
expect(result).toBeTypeOf('object');
121121
expect(Array.isArray(result.authentication)).toBe(true);
122122
expect(Array.isArray(result.authorisedList)).toBe(true);
123-
expect(result.contactEmail).toBeTypeOf('string');
123+
assert.isString(result.contactEmail);
124124
expect(result.cookieSecret).toBeTypeOf('string');
125125
expect(result.csrfProtection).toBeTypeOf('boolean');
126126
expect(Array.isArray(result.plugins)).toBe(true);

0 commit comments

Comments
 (0)