Commit aaafd639 authored by Clement Ho's avatar Clement Ho

Fix service desk spec

parent f387a164
......@@ -44,10 +44,10 @@ describe('ServiceDeskStore', () => {
});
it('set true', () => {
const err = new Error('some-fake-failure');
store.setFetchError(err);
const errMsg = 'some-fake-failure';
store.setFetchError(errMsg);
expect(store.state.fetchError).toEqual(err);
expect(store.state.fetchError).toEqual(new Error(errMsg));
});
});
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment