1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-14 23:50:06 +00:00

chore(lint): fixed linting issues

This commit is contained in:
Yury Shkoda
2022-06-20 19:26:29 +03:00
parent 1596173dda
commit 489947bcae
59 changed files with 243 additions and 236 deletions

View File

@@ -29,9 +29,7 @@ describe('uploadTables', () => {
.spyOn(convertToCsvModule, 'convertToCSV')
.mockImplementation(() => 'ERROR: LARGE STRING LENGTH')
const error = await uploadTables(requestClient, data, 't0k3n').catch(
(e) => e
)
const error = await uploadTables(requestClient, data, 't0k3n').catch(e => e)
expect(requestClient.uploadFile).not.toHaveBeenCalled()
expect(error.message).toEqual(
@@ -45,9 +43,7 @@ describe('uploadTables', () => {
.spyOn(requestClient, 'uploadFile')
.mockImplementation(() => Promise.reject('Upload Error'))
const error = await uploadTables(requestClient, data, 't0k3n').catch(
(e) => e
)
const error = await uploadTables(requestClient, data, 't0k3n').catch(e => e)
expect(error).toContain('Error while uploading file.')
})