-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): update tests to standards + ng 1.6.x
This commit upgrades our tests to use ES6 for many of the tests, plus use the new hashbang routing of angular 1.6.x. It also includes the stateEvents.js file while we migrate to the new ui-router transitions onEnter and onExit states. One failing test to go!
- Loading branch information
Showing
44 changed files
with
425 additions
and
486 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
angular.module('bhima.routes') | ||
.config([ '$stateProvider', function ($stateProvider) { | ||
|
||
.config(['$stateProvider', function ($stateProvider) { | ||
$stateProvider | ||
.state('fiscal', { | ||
url : '/fiscal', | ||
abstract : true, | ||
params : { | ||
id : { squash : true, value : null } | ||
}, | ||
controller: 'FiscalController as FiscalCtrl', | ||
templateUrl: 'partials/fiscal/fiscal.html' | ||
url : '/fiscal', | ||
abstract : true, | ||
controller : 'FiscalController as FiscalCtrl', | ||
templateUrl : 'partials/fiscal/fiscal.html', | ||
}) | ||
.state('fiscal.create', { | ||
url : '/create', | ||
controller : 'FiscalManagementController as FiscalManageCtrl', | ||
templateUrl : 'partials/fiscal/fiscal.manage.html' | ||
url : '/create', | ||
controller : 'FiscalManagementController as FiscalManageCtrl', | ||
templateUrl : 'partials/fiscal/fiscal.manage.html', | ||
}) | ||
.state('fiscal.list', { | ||
url : '', | ||
templateUrl : 'partials/fiscal/fiscal.list.html' | ||
url : '', | ||
templateUrl : 'partials/fiscal/fiscal.list.html', | ||
}) | ||
.state('fiscal.update', { | ||
url : '/:id/update', | ||
controller : 'FiscalManagementController as FiscalManageCtrl', | ||
url : '/:id/update', | ||
controller : 'FiscalManagementController as FiscalManageCtrl', | ||
templateUrl : 'partials/fiscal/fiscal.manage.html', | ||
data : { label : null } | ||
data : { label: null }, | ||
params : { | ||
id : { squash: true, value: null }, | ||
}, | ||
}) | ||
.state('fiscal.openingBalance', { | ||
url : '/:id/opening_balance', | ||
controller : 'FiscalOpeningBalanceController as FiscalOBCtrl', | ||
templateUrl : 'partials/fiscal/fiscal.openingBalance.html' | ||
url : '/:id/opening_balance', | ||
controller : 'FiscalOpeningBalanceController as FiscalOBCtrl', | ||
templateUrl : 'partials/fiscal/fiscal.openingBalance.html', | ||
params : { | ||
id : { squash: true, value: null }, | ||
}, | ||
}); | ||
}]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.