Files
onspring-api-sdk-javascript/tests/ListItemResponse.spec.ts
T

20 lines
665 B
TypeScript
Raw Normal View History

2023-02-07 11:52:46 -06:00
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);
});
});