fix type of "body" in test/e2e/reversi-game.ts

This commit is contained in:
Hazelnoot 2025-10-03 11:39:45 -04:00
parent 712cd1483f
commit 0f2ae5e3dc

View file

@ -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);
});
});