diff --git a/packages/compiler/test/compile.test.ts b/packages/compiler/test/compile.test.ts index ef283f009..376902f64 100644 --- a/packages/compiler/test/compile.test.ts +++ b/packages/compiler/test/compile.test.ts @@ -157,6 +157,7 @@ export default [get(state => state.data.endpoint)];`; test('compile simple promise chain', (t) => { const source = 'get($.data.endpoint).then((s => { console.log(s.data); return state;} ));'; + const expected = `import { defer as _defer } from "@openfn/runtime"; export default [_defer( @@ -182,6 +183,5 @@ export default [each( )];`; const result = compile(source); - console.log(result); t.is(result, expected); }); diff --git a/packages/compiler/test/transforms/promises.test.ts b/packages/compiler/test/transforms/promises.test.ts index ad10806d7..11049e3e1 100644 --- a/packages/compiler/test/transforms/promises.test.ts +++ b/packages/compiler/test/transforms/promises.test.ts @@ -183,7 +183,6 @@ _defer(fn(x), p => p.then(s => s));`; const transformed = transform(ast, [promises]) as n.File; const { code } = print(transformed); - console.log(code); t.is(code, result); });