File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export async function runSasJob(commandLine) {
26
26
let dataJson
27
27
let configJson
28
28
29
- if ( dataFilePath !== 'default' ) {
29
+ if ( dataFilePath ) {
30
30
if ( dataFilePath . split ( '.' ) . slice ( - 1 ) [ 0 ] !== 'json' ) {
31
31
throw new Error ( 'Provided data file must be valid json.' )
32
32
}
@@ -40,7 +40,7 @@ export async function runSasJob(commandLine) {
40
40
}
41
41
}
42
42
43
- if ( configFilePath !== 'default' ) {
43
+ if ( configFilePath ) {
44
44
if ( configFilePath . split ( '.' ) . slice ( - 1 ) [ 0 ] !== 'json' ) {
45
45
throw new Error ( 'Provided config file must be valid json.' )
46
46
}
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ describe('sasjs request', () => {
93
93
async ( ) => {
94
94
await expect (
95
95
runRequest (
96
- `request /Public/app/cli-tests-${ timestamp } /runRequest/sendArr -d ${ dataPathRel } -c default - t ${ targetName } `
96
+ `request /Public/app/cli-tests-${ timestamp } /runRequest/sendArr -d ${ dataPathRel } -t ${ targetName } `
97
97
)
98
98
) . resolves . toEqual ( true )
99
99
const rawData = await readFile ( `${ process . projectDir } /output.json` )
@@ -111,7 +111,7 @@ describe('sasjs request', () => {
111
111
async ( ) => {
112
112
await expect (
113
113
runRequest (
114
- `request /Public/app/cli-tests-${ timestamp } /runRequest/sendObj -d ${ dataPathRel } -c default - t ${ targetName } `
114
+ `request /Public/app/cli-tests-${ timestamp } /runRequest/sendObj -d ${ dataPathRel } -t ${ targetName } `
115
115
)
116
116
) . resolves . toEqual ( true )
117
117
const rawData = await readFile ( `${ process . projectDir } /output.json` )
@@ -131,7 +131,7 @@ describe('sasjs request', () => {
131
131
async ( ) => {
132
132
await expect (
133
133
runRequest (
134
- `request runRequest/sendArr -d ${ dataPathRel } -c default - t ${ targetName } `
134
+ `request runRequest/sendArr -d ${ dataPathRel } -t ${ targetName } `
135
135
)
136
136
) . resolves . toEqual ( true )
137
137
@@ -150,7 +150,7 @@ describe('sasjs request', () => {
150
150
async ( ) => {
151
151
await expect (
152
152
runRequest (
153
- `request runRequest/sendObj -d ${ dataPathRel } -c default - t ${ targetName } `
153
+ `request runRequest/sendObj -d ${ dataPathRel } -t ${ targetName } `
154
154
)
155
155
) . resolves . toEqual ( true )
156
156
You can’t perform that action at this time.
0 commit comments