Skip to content

Commit

Permalink
compiler: remove logs from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
josephjclark committed Jul 25, 2024
1 parent 0519232 commit 056f729
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/compiler/test/compile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -182,6 +183,5 @@ export default [each(
)];`;

const result = compile(source);
console.log(result);
t.is(result, expected);
});
1 change: 0 additions & 1 deletion packages/compiler/test/transforms/promises.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down

0 comments on commit 056f729

Please sign in to comment.