Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Apr 13, 2024
1 parent cb01956 commit d7ef8e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __tests__/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ describe('htmlbars-inline-precompile', function () {
expect(transformed).toContain(`window.define('my-app/components/thing', thing)`);
});

it('can emit side-effectful import', function () {
it('update scope correctly', function () {
let compatTransform: ExtendedPluginBuilder = () => {
return {
name: 'compat-transform',
Expand Down Expand Up @@ -1039,7 +1039,7 @@ describe('htmlbars-inline-precompile', function () {
visitor: {
ElementNode(node) {
if (node.tag === 'Thing') {
node.tag = 'NewThing';
node.tag = env.meta.jsutils.bindExpression('Thing', path, { nameHint: 'NewThing' });

Check failure on line 1042 in __tests__/tests.ts

View workflow job for this annotation

GitHub Actions / Floating dependencies

Cannot find name 'env'.

Check failure on line 1042 in __tests__/tests.ts

View workflow job for this annotation

GitHub Actions / Linting

Cannot find name 'env'.

Check failure on line 1042 in __tests__/tests.ts

View workflow job for this annotation

GitHub Actions / Tests (14)

Cannot find name 'env'.

Check failure on line 1042 in __tests__/tests.ts

View workflow job for this annotation

GitHub Actions / Tests (18)

Cannot find name 'env'.
}
},
},
Expand Down Expand Up @@ -1086,7 +1086,7 @@ describe('htmlbars-inline-precompile', function () {
}`);
});

it('updates scope correctly when renamed', function () {
it('can emit side-effectful import', function () {
let compatTransform: ExtendedPluginBuilder = (env) => {
return {
name: 'compat-transform',
Expand Down

0 comments on commit d7ef8e0

Please sign in to comment.