mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 14:36:57 +00:00
27 lines
640 B
JavaScript
27 lines
640 B
JavaScript
var MockModule = function () {
|
|
this.value =
|
|
this.factory =
|
|
this.service =
|
|
this.controller =
|
|
this.directive =
|
|
this.config =
|
|
this.run = function () {
|
|
return this
|
|
};
|
|
};
|
|
|
|
angular.module = jasmine.createSpy().andReturn(new MockModule())
|
|
|
|
var $, jQuery = function () {
|
|
throw "you must stub or mock any call to jQuery!"
|
|
};
|
|
|
|
beforeEach(function () {
|
|
this.addMatchers({
|
|
toBeEmpty: function () {
|
|
return _.isEmpty(this.actual);
|
|
}
|
|
});
|
|
});
|
|
|