feat: Add the ability to delete/archive articles (#5319)

This commit is contained in:
Muhsin Keloth 2022-09-01 10:55:59 +05:30 committed by GitHub
parent c8d01a84ce
commit 6e945dd61e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 123 additions and 14 deletions

View file

@ -52,4 +52,15 @@ describe('#PortalAPI', () => {
);
});
});
describeWithAPIMock('API calls', context => {
it('#deleteArticle', () => {
articlesAPI.deleteArticle({
articleId: 1,
portalSlug: 'room-rental',
});
expect(context.axiosMock.delete).toHaveBeenCalledWith(
'/api/v1/portals/room-rental/articles/1'
);
});
});
});