From 38d389b83899046b190f594155fb7c374d4b596f Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Wed, 21 Feb 2024 09:50:21 +0100 Subject: [PATCH] add test --- packages/transpiler/test/transpiler.test.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/transpiler/test/transpiler.test.mjs b/packages/transpiler/test/transpiler.test.mjs index 5f1b754f..988479b4 100644 --- a/packages/transpiler/test/transpiler.test.mjs +++ b/packages/transpiler/test/transpiler.test.mjs @@ -23,6 +23,9 @@ describe('transpiler', () => { it('supports top level await', () => { expect(transpiler("await samples('xxx');", simple).output).toEqual("await samples('xxx');"); }); + it('adds await to bare samples call', () => { + expect(transpiler("samples('xxx');", simple).output).toEqual("await samples('xxx');"); + }); /* it('parses dynamic imports', () => { expect( transpiler("const { default: foo } = await import('https://bar.com/foo.js');", {