@opra/testing
Version:
Opra testing package
19 lines (18 loc) • 503 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApiExpectBase = void 0;
require("../expect-extend/index.js");
const expect_1 = require("expect");
class ApiExpectBase {
constructor(response, isNot) {
this.response = response;
this.isNot = isNot;
}
_expect(expected) {
const out = (0, expect_1.expect)(expected);
if (this.isNot)
return out.not;
return out;
}
}
exports.ApiExpectBase = ApiExpectBase;