From 2fa1449bdf9b7424411f1ca3469f8415506abaae Mon Sep 17 00:00:00 2001 From: Yury Shkoda Date: Thu, 17 Mar 2022 16:12:31 +0300 Subject: [PATCH] test(get-init-term): fixed expected CompileTreeLeaf --- src/sasjsCli/getInitTerm.spec.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/sasjsCli/getInitTerm.spec.ts b/src/sasjsCli/getInitTerm.spec.ts index ae1f67a..6395bd2 100644 --- a/src/sasjsCli/getInitTerm.spec.ts +++ b/src/sasjsCli/getInitTerm.spec.ts @@ -65,11 +65,7 @@ describe('getInitTerm', () => { describe('getInit', () => { describe('job', () => { test('should return with Init Program of Target', async () => { - const initJobLeaf: Leaf = { - content: initFileContent, - dependencies: [], - location: jobConfig(false).initProgram - } + const initJobLeaf = getTestLeaf(jobConfig, false) jest .spyOn(internalModule, 'readFile')