add test
This commit is contained in:
parent
ebdca32c80
commit
38d389b838
1 changed files with 3 additions and 0 deletions
|
|
@ -23,6 +23,9 @@ describe('transpiler', () => {
|
||||||
it('supports top level await', () => {
|
it('supports top level await', () => {
|
||||||
expect(transpiler("await samples('xxx');", simple).output).toEqual("await samples('xxx');");
|
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', () => {
|
/* it('parses dynamic imports', () => {
|
||||||
expect(
|
expect(
|
||||||
transpiler("const { default: foo } = await import('https://bar.com/foo.js');", {
|
transpiler("const { default: foo } = await import('https://bar.com/foo.js');", {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue