mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-12 23:33:43 +08:00
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.
14 lines
626 B
JavaScript
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);
|
|
});
|