mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-18 09:30:06 +00:00
test: fixed unit tests
This commit is contained in:
@@ -213,7 +213,7 @@ describe('RequestClient - Self Signed Server', () => {
|
|||||||
serverType: ServerType.SasViya
|
serverType: ServerType.SasViya
|
||||||
})
|
})
|
||||||
|
|
||||||
const expectedError = 'self signed certificate'
|
const expectedError = 'self-signed certificate'
|
||||||
|
|
||||||
const rejectionErrorMessage = await adapterWithoutCertificate
|
const rejectionErrorMessage = await adapterWithoutCertificate
|
||||||
.getAccessToken('clientId', 'clientSecret', 'authCode')
|
.getAccessToken('clientId', 'clientSecret', 'authCode')
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ describe('RootFolderNotFoundError', () => {
|
|||||||
|
|
||||||
const error = new RootFolderNotFoundError(
|
const error = new RootFolderNotFoundError(
|
||||||
'/myProject',
|
'/myProject',
|
||||||
'https://analytium.co.uk',
|
'https://sas.4gl.io',
|
||||||
token
|
token
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ describe('RootFolderNotFoundError', () => {
|
|||||||
it('when access token is not provided, error message should not contain scopes', () => {
|
it('when access token is not provided, error message should not contain scopes', () => {
|
||||||
const error = new RootFolderNotFoundError(
|
const error = new RootFolderNotFoundError(
|
||||||
'/myProject',
|
'/myProject',
|
||||||
'https://analytium.co.uk'
|
'https://sas.4gl.io'
|
||||||
)
|
)
|
||||||
|
|
||||||
expect(error).toBeInstanceOf(RootFolderNotFoundError)
|
expect(error).toBeInstanceOf(RootFolderNotFoundError)
|
||||||
@@ -30,7 +30,7 @@ describe('RootFolderNotFoundError', () => {
|
|||||||
|
|
||||||
it('should include the folder path and SASDrive URL in the message', () => {
|
it('should include the folder path and SASDrive URL in the message', () => {
|
||||||
const folderPath = '/myProject'
|
const folderPath = '/myProject'
|
||||||
const serverUrl = 'https://analytium.co.uk'
|
const serverUrl = 'https://sas.4gl.io'
|
||||||
const error = new RootFolderNotFoundError(folderPath, serverUrl)
|
const error = new RootFolderNotFoundError(folderPath, serverUrl)
|
||||||
|
|
||||||
expect(error).toBeInstanceOf(RootFolderNotFoundError)
|
expect(error).toBeInstanceOf(RootFolderNotFoundError)
|
||||||
|
|||||||
Reference in New Issue
Block a user