@opra/testing
Version:
Opra testing package
18 lines (17 loc) • 413 B
JavaScript
import '../expect-extend/index.js';
import { HttpResponse } from '@opra/client';
import { expect } from 'expect';
export class ApiExpectBase {
response;
isNot;
constructor(response, isNot) {
this.response = response;
this.isNot = isNot;
}
_expect(expected) {
const out = expect(expected);
if (this.isNot)
return out.not;
return out;
}
}