Skip to content

Commit 2295fd8

Browse files
committed
mirage: Add empty GET /api/v1/me/crate_owner_invitations route handler
1 parent 52a7aee commit 2295fd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mirage/route-handlers/me.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,6 @@ export function register(server) {
9898

9999
return { ok: true };
100100
});
101+
102+
server.get('/api/v1/me/crate_owner_invitations', { crate_owner_invitations: [] });
101103
}

tests/mirage/invitations-test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module('Mirage | Crate Owner Invitations', function (hooks) {
1313

1414
module('GET /api/v1/me/crate_owner_invitations', function () {
1515
test('empty case', async function (assert) {
16-
this.server.get('/api/v1/me/crate_owner_invitations', { crate_owner_invitations: [] });
17-
1816
let response = await fetch('/api/v1/me/crate_owner_invitations');
1917
assert.equal(response.status, 200);
2018

0 commit comments

Comments
 (0)