feat: begin writing tests for getAppsByIds method

This commit is contained in:
Stevan Freeborn
2023-02-02 16:14:05 -06:00
parent 3e78a35967
commit d00683ea3c
2 changed files with 30 additions and 0 deletions
+27
View File
@@ -506,4 +506,31 @@ describe('OnspringClient', function () {
expect(result.data).to.be.null;
});
});
describe('getAppsByIds', function () {
it('should be defined', function () {
expect(new OnspringClient(baseUrl, apiKey).getAppsByIds).to.not.be
.undefined;
});
it('should be a function', function () {
expect(new OnspringClient(baseUrl, apiKey).getAppsByIds).to.be.a(
'function'
);
});
it('should have 1 parameter', function () {
expect(new OnspringClient(baseUrl, apiKey).getAppsByIds).to.have.lengthOf(
1
);
});
it('should return a promise', function () {
expect(
new OnspringClient(baseUrl, apiKey).getAppsByIds([1, 2, 3])
).to.be.a('promise');
});
// TODO: complete wriiting tests for getAppsByIds method
});
});