From 61db1e06099b6a02985285a9d9afc5b4031409d3 Mon Sep 17 00:00:00 2001 From: Yury Shkoda Date: Fri, 23 Jun 2023 18:04:48 +0300 Subject: [PATCH] test: fixed unit tests --- src/test/RequestClient.spec.ts | 2 +- src/types/errors/RootFolderNotFoundError.spec.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/RequestClient.spec.ts b/src/test/RequestClient.spec.ts index 05bc484..fb9cb89 100644 --- a/src/test/RequestClient.spec.ts +++ b/src/test/RequestClient.spec.ts @@ -213,7 +213,7 @@ describe('RequestClient - Self Signed Server', () => { serverType: ServerType.SasViya }) - const expectedError = 'self signed certificate' + const expectedError = 'self-signed certificate' const rejectionErrorMessage = await adapterWithoutCertificate .getAccessToken('clientId', 'clientSecret', 'authCode') diff --git a/src/types/errors/RootFolderNotFoundError.spec.ts b/src/types/errors/RootFolderNotFoundError.spec.ts index a27e071..3bd97a4 100644 --- a/src/types/errors/RootFolderNotFoundError.spec.ts +++ b/src/types/errors/RootFolderNotFoundError.spec.ts @@ -7,7 +7,7 @@ describe('RootFolderNotFoundError', () => { const error = new RootFolderNotFoundError( '/myProject', - 'https://analytium.co.uk', + 'https://sas.4gl.io', token ) @@ -19,7 +19,7 @@ describe('RootFolderNotFoundError', () => { it('when access token is not provided, error message should not contain scopes', () => { const error = new RootFolderNotFoundError( '/myProject', - 'https://analytium.co.uk' + 'https://sas.4gl.io' ) expect(error).toBeInstanceOf(RootFolderNotFoundError) @@ -30,7 +30,7 @@ describe('RootFolderNotFoundError', () => { it('should include the folder path and SASDrive URL in the message', () => { const folderPath = '/myProject' - const serverUrl = 'https://analytium.co.uk' + const serverUrl = 'https://sas.4gl.io' const error = new RootFolderNotFoundError(folderPath, serverUrl) expect(error).toBeInstanceOf(RootFolderNotFoundError)