fix type of "body" in test/e2e/reversi-game.ts
This commit is contained in:
parent
712cd1483f
commit
0f2ae5e3dc
1 changed files with 2 additions and 2 deletions
|
|
@ -25,8 +25,8 @@ describe('ReversiGame', () => {
|
|||
const response2 = await api('reversi/match', { userId: alice.id }, bob);
|
||||
assert.strictEqual(response2.status, 200);
|
||||
assert.notStrictEqual(response2.body, null);
|
||||
const body = response2.body as misskey.entities.ReversiMatchResponse;
|
||||
assert.strictEqual(body?.user1.id, alice.id);
|
||||
const body = response2.body as NonNullable<misskey.entities.ReversiMatchResponse>;
|
||||
assert.strictEqual(body.user1.id, alice.id);
|
||||
assert.strictEqual(body.user2.id, bob.id);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue