diff --git a/test/bootstrap/common.js b/test/bootstrap/common.js index 5f323562..4b47da18 100644 --- a/test/bootstrap/common.js +++ b/test/bootstrap/common.js @@ -28,6 +28,11 @@ window.famousAngularCommon = function($scope, $compile) { }, mockEvent: function(eventData) { return new CustomEvent('mock', eventData || {}); + }, + getIsolateFromElement: function(elem){ + var scope = elem.scope(); + var isolate = scope.isolate[scope.$id]; + return isolate; } } };