small refactor on address-edit.spec.js
This commit is contained in:
parent
f813d052aa
commit
60c46b5fb7
|
@ -2,16 +2,14 @@ import './address-edit.js';
|
||||||
|
|
||||||
describe('Component vnAddressEdit', () => {
|
describe('Component vnAddressEdit', () => {
|
||||||
let $componentController;
|
let $componentController;
|
||||||
let $scope;
|
|
||||||
let $state;
|
let $state;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
angular.mock.module('client');
|
angular.mock.module('client');
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(angular.mock.inject(function(_$componentController_, $rootScope, _$state_) {
|
beforeEach(angular.mock.inject(function(_$componentController_, _$state_) {
|
||||||
$componentController = _$componentController_;
|
$componentController = _$componentController_;
|
||||||
$scope = $scope;
|
|
||||||
$state = _$state_;
|
$state = _$state_;
|
||||||
$state.params.addressId = '1234';
|
$state.params.addressId = '1234';
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in New Issue