forked from mtusi2026/mtusi2026lab7
22 lines
1022 B
Plaintext
22 lines
1022 B
Plaintext
bun test v1.4.4 (38afee6c8)
|
|
|
|
student-tests/transport-negative.test.ts:
|
|
4 | import { createCommandRunner } from "./command-runner";
|
|
5 | export const root = resolve(import.meta.dir, "..");
|
|
6 | export const local = resolve(root, ".local");
|
|
7 | export const project = "mtuci-vp7-security";
|
|
8 | export function requireThat(value: unknown, code: string): asserts value {
|
|
9 | if (!value) throw new Error(code);
|
|
^
|
|
error: NEGATIVE_FAILED_FOR_UNEXPECTED_REASON
|
|
at requireThat (/Users/rey/mtuci/vp/lab7/scripts/runtime.ts:9:25)
|
|
at expectDenied (/Users/rey/mtuci/vp/lab7/student-tests/transport.ts:122:5)
|
|
at async <anonymous> (/Users/rey/mtuci/vp/lab7/student-tests/transport-negative.test.ts:4:16)
|
|
(fail) native explicit revoked-certificate alert is client denial, while an application success is not [0.74ms]
|
|
(pass) Bun native certificate-required alert counts as client denial while timeout never does [0.41ms]
|
|
|
|
1 pass
|
|
1 fail
|
|
2 expect() calls
|
|
Ran 2 tests across 1 file. [19.00ms]
|