diff --git a/spec/controllerSpec.js b/spec/controllerSpec.js index bfb979f..99168b2 100644 --- a/spec/controllerSpec.js +++ b/spec/controllerSpec.js @@ -211,7 +211,7 @@ describe('Controladores módulo crear nota de pedido', function() { $filter: filter, $timeout: timeout, crearNotaPedidoService: { - getNumeroNotaPedido: function() { + getNumeroNotaPedido: function() { return { then: function() { } }; @@ -255,7 +255,7 @@ describe('Controladores módulo crear nota de pedido', function() { 'undefined', function() { //arrange - var scope = { + var scope = { $watch: function() { }, $broadcast: function() { } }; @@ -379,7 +379,7 @@ describe('Controladores módulo crear nota de pedido', function() { $filter: filter, $timeout: timeout, crearNotaPedidoService: { - getNumeroNotaPedido: function() { + getNumeroNotaPedido: function() { return { then: function() { } }; @@ -1039,8 +1039,6 @@ describe('Controladores módulo crear nota de pedido', function() { var scope = { $watch: function() { }, $broadcast: function() { } - - }; var uibModal = { open: function() { }