settings: fix angular test 5
This commit is contained in:
parent
2a976d2673
commit
0a531a47f9
1 changed files with 15 additions and 10 deletions
|
|
@ -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
|
||||||
|
}]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue