Fix dashboard unit test warning
This PR fixes a dashboard unit test added in that was passing, but
returning a warning.
@@ -16,7 +16,8 @@ describe('ApiHelpers', () => {
fetchStub = sinon.stub(window, 'fetch');
fetchStub.resolves({
ok: true,
- json: () => Promise.resolve({})
+ json: () => Promise.resolve({}),
+ text: () => Promise.resolve({})
});
api = ApiHelpers('');
});
