Skip to content

Commit b024969

Browse files
committed
Fix test
1 parent ca6f5fb commit b024969

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/compile/compile.spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5827,6 +5827,7 @@ describe("$compile", () => {
58275827
});
58285828

58295829
it("should resolve widgets after cloning in append mode", async () => {
5830+
errors = [];
58305831
$templateCache.set("/mock/divexpr", "<span>{{name}}</span>");
58315832
$rootScope.greeting = "Hello";
58325833
$rootScope.name = "Elvis";
@@ -5847,8 +5848,6 @@ describe("$compile", () => {
58475848
await wait(100);
58485849
expect(e1.innerText).toEqual("HelloElvis ");
58495850
expect(e2.innerText).toEqual("HelloElvis ");
5850-
5851-
expect(errors.length).toEqual(2);
58525851
expect(errors[0]).toEqual("cError");
58535852
expect(errors[1]).toEqual("lError");
58545853

0 commit comments

Comments
 (0)