Skip to content

Commit 7a9ad86

Browse files
fix missing closing div tag
1 parent a260e54 commit 7a9ad86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1820EN_10_Code/02_if_directive/directive.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ describe('if directive', function () {
88
}));
99

1010
it('does not add element to the DOM if condition is initially false', function () {
11-
element = $compile('<div><div if="false"></div>')(scope);
11+
element = $compile('<div><div if="false"></div></div>')(scope);
1212
scope.$apply();
1313
expect(element.children('div').length).toBe(0);
1414
});
1515

1616
it('adds the element to the DOM on the first digest if condition is initially true', function () {
17-
element = $compile('<div><div if="true"></div>')(scope);
17+
element = $compile('<div><div if="true"></div></div>')(scope);
1818
expect(element.children().length).toBe(0);
1919
scope.$apply();
2020
expect(element.children().length).toBe(1);

0 commit comments

Comments
 (0)