fix: add missing tests
This commit is contained in:
@@ -9,7 +9,7 @@ export class OnspringClient {
|
||||
/**
|
||||
* @readonly {AxiosInstance} client - The axios instance that will be used to make requests to the Onspring API.
|
||||
*/
|
||||
protected readonly client: AxiosInstance;
|
||||
private readonly _client: AxiosInstance;
|
||||
|
||||
/**
|
||||
* @constructor - Creates a new instance of the OnspringClient class.
|
||||
@@ -31,7 +31,7 @@ export class OnspringClient {
|
||||
throw new Error('apiKey cannot be null/empty/whitespace.');
|
||||
}
|
||||
|
||||
this.client = axios.create({
|
||||
this._client = axios.create({
|
||||
baseURL: baseUrl,
|
||||
headers: {
|
||||
'x-apikey': apiKey,
|
||||
|
||||
+14
-1
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @class App - Model for the App object
|
||||
*/
|
||||
class App {
|
||||
export class App {
|
||||
/**
|
||||
* @property {string} href - The URL to the app
|
||||
*/
|
||||
@@ -16,4 +16,17 @@ class App {
|
||||
* @property {string} name - The name of the app
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* @constructor - Creates a new instance of the App class.
|
||||
* @param {string} href - The URL to the app
|
||||
* @param {number} id - The id of the app
|
||||
* @param {string} name - The name of the app
|
||||
* @returns {App} - A new instance of the App class.
|
||||
*/
|
||||
constructor(href: string, id: number, name: string) {
|
||||
this.href = href;
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user