Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/squid-config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('generateSquidConfig', () => {
};
const result = generateSquidConfig(config);
expect(result).toContain('acl allowed_domains dstdomain .github.com');
expect(result).not.toMatch(/github\.com\//);
expect(result).not.toContain('github.com/');
});

it('should remove trailing slash with protocol prefix', () => {
Expand All @@ -72,7 +72,7 @@ describe('generateSquidConfig', () => {
const result = generateSquidConfig(config);
expect(result).toContain('acl allowed_https_only dstdomain .example.com');
expect(result).not.toContain('https://');
expect(result).not.toMatch(/example\.com\//);
expect(result).not.toContain('example.com/');
});

it('should handle domain with port number', () => {
Expand Down
Loading