@postdata/cli
Version:
A CLI to run Postdata test scripts in CI environments.
20 lines (15 loc) • 535 B
text/typescript
import { isHoppErrnoException } from "../../../utils/checks";
describe("isHoppErrnoException", () => {
test("NULL exception value.", () => {
expect(isHoppErrnoException(null)).toBeFalsy();
});
test("Non-existing name property.", () => {
expect(isHoppErrnoException({ what: "what" })).toBeFalsy();
});
test("Invalid name value.", () => {
expect(isHoppErrnoException({ name: 3 })).toBeFalsy();
});
test("Valid name value.", () => {
expect(isHoppErrnoException({ name: "name" })).toBeTruthy();
});
});