1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-07 12:30:06 +00:00

style: lint

This commit is contained in:
Mihajlo Medjedovic
2021-01-06 16:33:47 +01:00
parent ecfc1a4bf8
commit efa4c71b8a
2 changed files with 15 additions and 7 deletions

View File

@@ -1341,7 +1341,10 @@ export class SASViyaApiClient {
const sourceFolderUri = await this.getFolderUri(sourceFolder, accessToken)
// checks if 'targetParentFolder' is already a URI
const targetParentFolderUri = await this.getFolderUri(targetParentFolder, accessToken)
const targetParentFolderUri = await this.getFolderUri(
targetParentFolder,
accessToken
)
const sourceFolderId = sourceFolderUri?.split('/').pop()

View File

@@ -19,7 +19,7 @@ describe('FolderOperations', () => {
'https://sample.server.com',
'/Public',
'Context',
function() {}
function () {}
)
beforeAll(() => {
@@ -33,7 +33,9 @@ describe('FolderOperations', () => {
json: () => Promise.resolve(sampleResponse),
ok: true,
headers: {
get: function() { return '' }
get: function () {
return ''
}
}
})
)
@@ -44,11 +46,14 @@ describe('FolderOperations', () => {
})
it('should move folder successfully', async (done) => {
let res: any = await sasViyaApiClient.moveFolder('/Test/test', '/Test/toFolder', 'toFolder', 'token')
expect(JSON.stringify(res)).toEqual(
JSON.stringify(sampleResponse)
let res: any = await sasViyaApiClient.moveFolder(
'/Test/test',
'/Test/toFolder',
'toFolder',
'token'
)
expect(JSON.stringify(res)).toEqual(JSON.stringify(sampleResponse))
done()
})
})