Skip to content

Commit 9d62f4b

Browse files
committed
fix tests
1 parent 404ded0 commit 9d62f4b

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

__tests__/tests.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ describe('htmlbars-inline-precompile', function () {
421421
);
422422

423423
expect(transformed).toEqualCode(`
424-
define(["@ember/template-compilation", "@ember/template-factory"], function (_templateCompilation, _templateFactory) {
424+
define(["@ember/template-factory"], function (_templateFactory) {
425425
"use strict";
426426
427427
var compiled = (0, _templateFactory.createTemplateFactory)(

src/scope-locals.ts

-12
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ export class ScopeLocals {
1414
return this.#locals;
1515
}
1616

17-
get mapping() {
18-
return this.#mapping;
19-
}
20-
2117
has(key: string): boolean {
2218
return key in this.#mapping;
2319
}
@@ -44,12 +40,4 @@ export class ScopeLocals {
4440
this.#locals.push(key);
4541
}
4642
}
47-
48-
remove(key: string) {
49-
delete this.#mapping[key];
50-
const i = this.#locals.indexOf(key);
51-
if (i >= 0) {
52-
this.#locals.splice(i, 1);
53-
}
54-
}
5543
}

0 commit comments

Comments
 (0)