Skip to content

Commit cb97248

Browse files
committed
Issue #326 directive-restrict AE always not work in some case
1 parent a286e39 commit cb97248

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/directive-restrict.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ eslintTester.run('directive-restrict', rule, {
2626
'app.directive("", function() {return {restrict:"E"}})',
2727
// Allowed with custom restrict
2828
{
29+
code: `app.directive("snapContainer", [
30+
"$injector", "$rootScope", "$rootElement", "$timeout", "ibRoutePathSaver",
31+
function($injector, $rootScope, $rootElement, $timeout, ibRoutePathSaver) {
32+
return {
33+
restrict: "A"
34+
}
35+
}])`,
36+
options: [{restrict: 'A'}]
37+
}, {
2938
code: 'app.directive("", function() {return {restrict:"A"}})',
3039
options: [{restrict: 'A'}]
3140
}, {

0 commit comments

Comments
 (0)