feat: begin writing tests for getAppsByIds method
This commit is contained in:
@@ -12,6 +12,9 @@ import { App } from './App';
|
||||
* @class OnspringClient - A client that can communicate with the Onspring API.
|
||||
*/
|
||||
export class OnspringClient {
|
||||
getAppsByIds(getAppsByIds: any) {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
/**
|
||||
* @readonly {AxiosInstance} client - The axios instance that will be used to make requests to the Onspring API.
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user