fix: complete code test coverage

This commit is contained in:
StevanFreeborn
2023-01-26 22:42:45 -06:00
parent 9ab72bd37c
commit af806e71ad
+7
View File
@@ -81,6 +81,13 @@ describe('EndpointFactory', function () {
});
});
describe('getAddOrUpdateListItemEndpoint', function () {
it('should return the correct add or update list item endpoint', function () {
const result = EndpointFactory.getAddOrUpdateListItemEndpoint(baseUrl, 1);
expect(result).to.equal(`${baseUrl}/Lists/id/1/items`);
});
});
describe('getDeleteListItemEndpoint', function () {
it('should return the correct delete list item endpoint', function () {
const result = EndpointFactory.getDeleteListItemEndpoint(baseUrl, 1, '612ac495-8aad-44fd-b57d-1ae798dcf1a5');