summaryrefslogtreecommitdiffstats
path: root/tests/javascript/unit/store/feed.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/javascript/unit/store/feed.spec.ts')
-rw-r--r--tests/javascript/unit/store/feed.spec.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/javascript/unit/store/feed.spec.ts b/tests/javascript/unit/store/feed.spec.ts
index 451d04d7a..db4431b20 100644
--- a/tests/javascript/unit/store/feed.spec.ts
+++ b/tests/javascript/unit/store/feed.spec.ts
@@ -22,20 +22,20 @@ describe('feed.ts', () => {
})
describe('ADD_FEED', () => {
- it('should call FeedService.addF and commit feed to state', async () => {
+ it('should call FeedService.addFeed and commit feed to state', async () => {
FeedService.addFeed = jest.fn();
(FeedService.addFeed as any).mockResolvedValue({ data: { feeds: [] } })
const commit = jest.fn()
- await actions[FEED_ACTION_TYPES.ADD_FEED]({ commit }, { feedReq: { url: '' } })
+ await actions[FEED_ACTION_TYPES.ADD_FEED]({ commit } as any, { feedReq: { url: '' } } as any)
expect(FeedService.addFeed).toBeCalled()
expect(commit).toBeCalled()
})
- it('should call FeedService.addF and not call commit if error', async () => {
+ it('should call FeedService.addFeed and not call commit if error', async () => {
FeedService.addFeed = jest.fn();
(FeedService.addFeed as any).mockRejectedValue()
const commit = jest.fn()
- await actions[FEED_ACTION_TYPES.ADD_FEED]({ commit }, { feedReq: { url: '' } })
+ await actions[FEED_ACTION_TYPES.ADD_FEED]({ commit } as any, { feedReq: { url: '' } } as any)
expect(FeedService.addFeed).toBeCalled()
expect(commit).not.toBeCalled()