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

Commit caa0b9d

Browse files
chore(privateMocks): use global angular to access helpers in they
When using `they` in modules such as `ngMessages` we do not have access to the internal helper functions.
1 parent 0c541cf commit caa0b9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/helpers/privateMocks.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
/* globals xit */
44

55
function baseThey(msg, vals, spec, itFn) {
6-
var valsIsArray = isArray(vals);
6+
var valsIsArray = angular.isArray(vals);
77

8-
forEach(vals, function(val, key) {
8+
angular.forEach(vals, function(val, key) {
99
var m = msg.replace(/\$prop/g, angular.toJson(valsIsArray ? val : key));
1010
itFn(m, function() {
1111
/* jshint -W040 : ignore possible strict violation due to use of this */

0 commit comments

Comments
 (0)