Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6eb77e8

Browse files
committed
fixup! fix($compile): use correct parent element when requiring on html element
1 parent 6952a09 commit 6eb77e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/e2e/tests/directive-require-html.spec.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ describe('require parent controller on html element', function() {
77

88
browser.manage().logs().get('browser').then(function(browserLogs) {
99
var requireError = browserLogs.find(function(log) {
10-
return log.level.value === 1000;
10+
return log.message.indexOf('Controller \'requireTargetDirective\', required by directive \'requireDirective\', can\'t be found!') > -1;
1111
});
1212

13-
expect(requireError.message).toContain('Controller \'requireTargetDirective\', required by directive \'requireDirective\', can\'t be found!');
13+
expect(requireError).toBeDefined();
14+
expect(requireError.level.value).toBe(1000);
1415
});
1516
});
1617
});

0 commit comments

Comments
 (0)