Skip to content

Commit

Permalink
Merge pull request #279 from sasjs/fix-adapter-imports
Browse files Browse the repository at this point in the history
fix(*): upgrade adapter to work with TypeScript
  • Loading branch information
YuryShkoda authored Nov 26, 2020
2 parents 2a41cc5 + 0ac5c40 commit 2cc3850
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ build
sas
sasbuild
.env
.DS_Store
5 changes: 5 additions & 0 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"watch": ["src"],
"ext": "js, ts",
"exec": "ts-node src/index.ts"
}
13 changes: 6 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
]
},
"bin": {
"sasjs": "./build/index.js"
"sasjs": "build/index.js"
},
"repository": {
"type": "git",
Expand All @@ -40,8 +40,8 @@
"access": "public"
},
"dependencies": {
"@sasjs/adapter": "^1.18.3",
"@sasjs/core": "^1.8.0",
"@sasjs/adapter": "^1.18.7",
"@sasjs/core": "^1.11.2",
"base64-img": "^1.0.4",
"btoa": "^1.2.1",
"chalk": "^4.1.0",
Expand Down
4 changes: 2 additions & 2 deletions test/commands/job.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,13 @@ describe('getContextName', () => {
jest.unmock('chalk')
})

it.only('should return the context name if specified in the target', () => {
it('should return the context name if specified in the target', () => {
const target = { contextName: 'Test Context' }

expect(getContextName(target)).toEqual('Test Context')
})

it.only('should return the default context if context name is not specified', () => {
it('should return the default context if context name is not specified', () => {
const target = { contextName: undefined }

expect(getContextName(target)).toEqual('SAS Job Execution compute context')
Expand Down

0 comments on commit 2cc3850

Please sign in to comment.