Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Sep 24, 2021
1 parent b4918ac commit 14bd241
Showing 1 changed file with 9 additions and 38 deletions.
47 changes: 9 additions & 38 deletions packages/babel-plugin-solid-labels/test/index.js
Original file line number Diff line number Diff line change
@@ -1,49 +1,20 @@
const babel = require('@babel/core');
const plugin = require('../dist/cjs');

const code = `
// @signal
let count = 0;
// @memo
const message = \`Count: \${count}\`;
































const code = `
const [a, b, { c: [d, e], [read(d)]: c }, ...f] = $destructure(props);
$: console.log(a);
$: console.log(c, d);
$: console.log(e, f);
/* @effect */ {
console.log(message);
}
`;
babel.transformAsync(code, {
plugins: [
plugin,
[plugin, { dev: true }],
],
}).then((result) => {
console.log(result.code);
Expand Down

0 comments on commit 14bd241

Please sign in to comment.