@bigtest/mirage
Version:
A client-side server to develop, test and prototype your app.
20 lines (13 loc) • 480 B
JavaScript
import { Response } from '@bigtest/mirage';
import {module, test} from 'qunit';
module('Unit | Response');
test('it can be instantiated and return a rack response', function(assert) {
let response = new Response(404, {}, {});
assert.ok(response);
assert.ok(response.toRackResponse());
});
test('it can be instantiated with just a response code', function(assert) {
let response = new Response(404);
assert.ok(response);
assert.ok(response.toRackResponse());
});