From af806e71ad07c36828b32a77da442f96a14e9f08 Mon Sep 17 00:00:00 2001 From: StevanFreeborn Date: Thu, 26 Jan 2023 22:42:45 -0600 Subject: [PATCH] fix: complete code test coverage --- tests/EndpointFactory.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/EndpointFactory.spec.ts b/tests/EndpointFactory.spec.ts index 3d326e0..39131dd 100644 --- a/tests/EndpointFactory.spec.ts +++ b/tests/EndpointFactory.spec.ts @@ -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');