feat: implement addOrUpdateListItem method

This commit is contained in:
Stevan Freeborn
2023-02-07 11:52:46 -06:00
parent a68ea4f63e
commit 190c829dc3
8 changed files with 391 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import { ListItemResponse } from '../src/models/ListItemResponse';
import { expect } from 'chai';
describe('ListItemResponse', function () {
it('should be defined', function () {
expect(ListItemResponse).to.not.be.undefined;
});
it('should have a constructor with 1 parameter', function () {
expect(ListItemResponse).to.have.property('constructor');
expect(ListItemResponse.constructor).to.have.lengthOf(1);
});
it('should have a constructor that takes an id and sets the id property', function () {
const id = 1;
const listItemResponse = new ListItemResponse(id);
expect(listItemResponse).to.have.property('id', id);
});
});