diff --git a/src/server/api.test.js b/src/server/api.test.js index 3e89d33c2..b7e77bd41 100644 --- a/src/server/api.test.js +++ b/src/server/api.test.js @@ -416,7 +416,7 @@ describe('.createApiServer', () => { }); test('should get 2 games', async () => { - expect(Object.keys(JSON.parse(response.text)).length).toEqual(2); + expect(JSON.parse(response.text)).toEqual(['foo', 'bar']); }); }); });