3 describe('crmMailing', function() {
5 beforeEach(function() {
10 describe('ListMailingsCtrl', function() {
14 beforeEach(function() {
15 navigator
= jasmine
.createSpyObj('crmNavigator', ['redirect']);
16 module(function ($provide
) {
17 $provide
.value('crmNavigator', navigator
)
19 inject(['crmLegacy', function(crmLegacy
) {
20 crmLegacy
.url({back
: '/*path*?*query*', front
: '/*path*?*query*'});
22 inject(['$controller', function($controller
) {
23 ctrl
= $controller('ListMailingsCtrl', {});
27 it('should redirect to unscheduled', function() {
28 expect(navigator
.redirect
).toHaveBeenCalled();