Skip to content

Commit 24d3ed4

Browse files
committed
Add failing test for directive returning when the return is implicit.
1 parent 0b8b0bf commit 24d3ed4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/simple-arrow.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@ module.exports = {
252252
}
253253
}
254254
});
255+
myMod.directive("foo", ($scope) => ({
256+
controller: ($scope, $timeout) => {
257+
bar;
258+
}
259+
}));
255260
},
256261
expected: function(){
257262
// directive return object
@@ -269,6 +274,11 @@ module.exports = {
269274
}
270275
}
271276
}]);
277+
myMod.directive("foo", ["$scope", ($scope) => ({
278+
controller: ["$scope", "$timeout", ($scope, $timeout) => {
279+
bar;
280+
}]
281+
})]);
272282
}
273283
},
274284
{

0 commit comments

Comments
 (0)