-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea80d27
commit ddb1d50
Showing
2 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import { getExecutorPath } from './executor' | ||
|
||
// Add more pair options to be tested here | ||
const serverTypePathMap: {serverType: string, executorPath: string}[] = [ | ||
{serverType: 'SASVIYA', executorPath: '/SASJobExecution'}, | ||
{serverType: 'SAS9', executorPath: '/SASStoredProcess/do'} | ||
const serverTypePathMap: { serverType: string; executorPath: string }[] = [ | ||
{ serverType: 'SASVIYA', executorPath: '/SASJobExecution' }, | ||
{ serverType: 'SAS9', executorPath: '/SASStoredProcess/do' } | ||
] | ||
|
||
describe('Get executor path', () => { | ||
it('should return the path based on server type', () => { | ||
for (let entry of serverTypePathMap) { | ||
expect(getExecutorPath(entry.serverType)).toEqual(entry.executorPath) | ||
} | ||
}) | ||
it('should return the path based on server type', () => { | ||
for (let entry of serverTypePathMap) { | ||
expect(getExecutorPath(entry.serverType)).toEqual(entry.executorPath) | ||
} | ||
}) | ||
|
||
it('should return the path based on server type provided lowercase', () => { | ||
for (let entry of serverTypePathMap) { | ||
expect(getExecutorPath(entry.serverType)).toEqual(entry.executorPath) | ||
} | ||
}) | ||
it('should return the path based on server type provided lowercase', () => { | ||
for (let entry of serverTypePathMap) { | ||
expect(getExecutorPath(entry.serverType)).toEqual(entry.executorPath) | ||
} | ||
}) | ||
|
||
it('should return empty string for incorrectly provided server type', () => { | ||
expect(getExecutorPath('invalid')).toEqual('') | ||
expect(getExecutorPath('')).toEqual('') | ||
}) | ||
}) | ||
it('should return empty string for incorrectly provided server type', () => { | ||
expect(getExecutorPath('invalid')).toEqual('') | ||
expect(getExecutorPath('')).toEqual('') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters