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:
@@ -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.')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user