spec files renamed accordingly, plus linter or indentation corrections
This commit is contained in:
parent
642f85594e
commit
b5356eb07d
|
@ -43,6 +43,7 @@ describe('Component vnStepControl', () => {
|
||||||
controller.steps = [{state: 'iam_not_current_state'}, {state: 'iam_a_current_state'}];
|
controller.steps = [{state: 'iam_not_current_state'}, {state: 'iam_a_current_state'}];
|
||||||
|
|
||||||
let result = controller.currentStepIndex;
|
let result = controller.currentStepIndex;
|
||||||
|
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,7 +5,7 @@ class Controller {
|
||||||
this.$scope = $scope;
|
this.$scope = $scope;
|
||||||
this.$timeout = $timeout;
|
this.$timeout = $timeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
$onChanges(data) {
|
$onChanges(data) {
|
||||||
this.$timeout(() => {
|
this.$timeout(() => {
|
||||||
this.$scope.watcher.data = data.item.currentValue;
|
this.$scope.watcher.data = data.item.currentValue;
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
import ngModule from '../module';
|
import ngModule from '../module';
|
||||||
|
|
||||||
class Controller {
|
class Controller {
|
||||||
constructor() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
setFilter() {
|
setFilter() {
|
||||||
this.catalogue.applyFilter();
|
this.catalogue.applyFilter();
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ class Controller extends FilterTicketList {
|
||||||
}
|
}
|
||||||
return sum;
|
return sum;
|
||||||
}
|
}
|
||||||
|
|
||||||
base() {
|
base() {
|
||||||
let sum;
|
let sum;
|
||||||
if (this.sales) {
|
if (this.sales) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* import './step-three.js';
|
/* import './index.js';
|
||||||
|
|
||||||
describe('ticket', () => {
|
describe('ticket', () => {
|
||||||
describe('Component vnTicketDataStepThree', () => {
|
describe('Component vnTicketDataStepThree', () => {
|
||||||
|
@ -38,7 +38,7 @@ describe('ticket', () => {
|
||||||
landed: Date.now(),
|
landed: Date.now(),
|
||||||
option: 1
|
option: 1
|
||||||
};
|
};
|
||||||
|
|
||||||
let response = {data: {error: {message: 'NOTHING_HERE'}}};
|
let response = {data: {error: {message: 'NOTHING_HERE'}}};
|
||||||
|
|
||||||
$httpBackend.whenPOST(`/ticket/api/tickets/1/componentUpdate`, data).respond(400, response);
|
$httpBackend.whenPOST(`/ticket/api/tickets/1/componentUpdate`, data).respond(400, response);
|
||||||
|
@ -48,4 +48,4 @@ describe('ticket', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}); */
|
}); */
|
Loading…
Reference in New Issue