fix: add eslint and configure it

This commit is contained in:
StevanFreeborn
2023-02-03 00:16:38 -06:00
parent 54b0668e4a
commit bd55381dc9
16 changed files with 4259 additions and 70 deletions
+4 -7
View File
@@ -1,6 +1,9 @@
import { OnspringClient } from '../src/models/OnspringClient';
import { ApiResponse } from '../src/models/ApiResponse';
import axios, { AxiosResponse, InternalAxiosRequestConfig } from 'axios';
import axios, {
type AxiosResponse,
type InternalAxiosRequestConfig,
} from 'axios';
import { expect } from 'chai';
import * as sinon from 'sinon';
import { GetPagedAppsResponse } from '../src/models/GetPagedAppsResponse';
@@ -84,12 +87,6 @@ describe('OnspringClient', function () {
expect(() => new OnspringClient(baseUrl, apiKey)).to.not.throw();
});
it('should not throw an error when the baseUrl is a valid url', function () {
expect(
() => new OnspringClient('http://api.onspring.com', apiKey)
).to.not.throw();
});
it('should not throw an error when the apiKey is a valid string', function () {
expect(() => new OnspringClient(baseUrl, apiKey)).to.not.throw();
});