Skip to content

Commit 8a03b39

Browse files
committed
more .component tests
1 parent a150953 commit 8a03b39

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/original.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ angular.module("MyMod").directive("foo", function($a, $b) {
193193
d;
194194
}).animation("foo", function($f, $g) {
195195
e;
196-
}).invoke("foo", function($h, $i) {
196+
}).component("foo", {controller: function($scope, $timeout) {
197+
i;
198+
}}).invoke("foo", function($h, $i) {
197199
f;
198200
}).decorator("foo", function($h, $i) {
199201
g;

tests/with_annotations.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ angular.module("MyMod").directive("foo", ["$a", "$b", function($a, $b) {
208208
d;
209209
}]).animation("foo", ["$f", "$g", function($f, $g) {
210210
e;
211-
}]).invoke("foo", ["$h", "$i", function($h, $i) {
211+
}]).component("foo", {controller: ["$scope", "$timeout", function($scope, $timeout) {
212+
i;
213+
}]}).invoke("foo", ["$h", "$i", function($h, $i) {
212214
f;
213215
}]).decorator("foo", ["$h", "$i", function($h, $i) {
214216
g;

0 commit comments

Comments
 (0)