Files
kuekhaoyang 3771b63332 feat: add self-contained strict verification chain
Keep every post-59948b5 change inside verification/. The verifier owns its npm working directory and sanitized Docker context, so no release metadata or root Docker configuration is modified.
2026-08-02 06:11:13 +08:00

14 lines
626 B
JavaScript

import assert from 'node:assert/strict';
import test from 'node:test';
import { PROXY_FIXTURES } from '../../src/checks/proxy.mjs';
test('public proxy fixtures are HTTPS and independent of GitHub history', () => {
for (const url of Object.values(PROXY_FIXTURES)) {
assert.equal(new URL(url).protocol, 'https:');
}
assert.equal(new URL(PROXY_FIXTURES.binary).hostname, 'httpbingo.org');
assert.equal(new URL(PROXY_FIXTURES.range).hostname, 'httpbingo.org');
assert.equal(new URL(PROXY_FIXTURES.notFound).hostname, 'httpbingo.org');
assert.doesNotMatch(Object.values(PROXY_FIXTURES).join('\n'), /github/i);
});