First successful test, instantiating an amountController.
This commit is contained in:
parent
cc907251f7
commit
0db57f997a
4 changed files with 62 additions and 5 deletions
55
src/js/controllers/amount.spec.js
Normal file
55
src/js/controllers/amount.spec.js
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
fdescribe('amountController', function(){
|
||||
var $controller,
|
||||
$rootScope,
|
||||
platformInfo,
|
||||
$stateParams;
|
||||
|
||||
|
||||
|
||||
beforeEach(function(){
|
||||
module('ngLodash');
|
||||
module('copayApp.controllers');
|
||||
|
||||
platformInfo = {
|
||||
isChromeApp: false,
|
||||
isAndroid: false,
|
||||
isIos: true
|
||||
};
|
||||
|
||||
$stateParams = {};
|
||||
|
||||
inject(function(_$controller_, _$rootScope_){
|
||||
// The injector unwraps the underscores (_) from around the parameter names when matching
|
||||
$controller = _$controller_;
|
||||
$rootScope = _$rootScope_;
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
it('something', function() {
|
||||
var $scope = $rootScope.$new();
|
||||
var amountController = $controller('amountController', {
|
||||
configService: {},
|
||||
gettextCatalog: {},
|
||||
$ionicHistory: {},
|
||||
$ionicModal: {},
|
||||
$ionicScrollDelegate: {},
|
||||
nodeWebkitService: {},
|
||||
ongoingProcess: {},
|
||||
platformInfo: platformInfo,
|
||||
profileService: {},
|
||||
popupService: {},
|
||||
rateService: {},
|
||||
$scope: $scope,
|
||||
$state: {},
|
||||
$stateParams: $stateParams,
|
||||
txFormatService: {},
|
||||
walletService: {}
|
||||
});
|
||||
|
||||
expect(true).toBe(true);
|
||||
});
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue