settings: fix angular test 5

This commit is contained in:
Manuel Araoz 2014-09-05 16:19:49 -07:00
commit 0a531a47f9

View file

@ -104,6 +104,7 @@ describe("Unit: Controllers", function() {
var transactionsCtrl; var transactionsCtrl;
beforeEach(inject(function($controller, $rootScope) { beforeEach(inject(function($controller, $rootScope) {
scope = $rootScope.$new(); scope = $rootScope.$new();
$rootScope.wallet = new FakeWallet(walletConfig);
transactionsCtrl = $controller('TransactionsController', { transactionsCtrl = $controller('TransactionsController', {
$scope: scope, $scope: scope,
}); });
@ -125,7 +126,11 @@ describe("Unit: Controllers", function() {
beforeEach(module(function($provide) { beforeEach(module(function($provide) {
$provide.value('request', { $provide.value('request', {
'get': function(_, cb) { 'get': function(_, cb) {
cb(null, null, [{name: 'lol currency', code: 'LOL', rate: 2}]); cb(null, null, [{
name: 'lol currency',
code: 'LOL',
rate: 2
}]);
} }
}); });
})); }));