Skip to content

Commit d6f59d0

Browse files
committed
test: Add tests to fix coverage
1 parent 91e79a6 commit d6f59d0

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/data/api.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,14 @@ describe('legacy libraries migration API', () => {
3131
expect(axiosMock.history.post[0].url).toEqual(url);
3232
});
3333
});
34+
35+
describe('getPreviewModulestoreMigration', () => {
36+
it('should call get preview modulestore migration', async () => {
37+
const url = api.getPreviewModulestoreMigrationUrl();
38+
axiosMock.onGet(url).reply(200);
39+
await api.getPreviewModulestoreMigration('1', '2');
40+
41+
expect(axiosMock.history.get[0].url).toEqual(url);
42+
});
43+
});
3444
});

0 commit comments

Comments
 (0)