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;
|
||||
beforeEach(inject(function($controller, $rootScope) {
|
||||
scope = $rootScope.$new();
|
||||
$rootScope.wallet = new FakeWallet(walletConfig);
|
||||
transactionsCtrl = $controller('TransactionsController', {
|
||||
$scope: scope,
|
||||
});
|
||||
|
|
@ -125,7 +126,11 @@ describe("Unit: Controllers", function() {
|
|||
beforeEach(module(function($provide) {
|
||||
$provide.value('request', {
|
||||
'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