spec files renamed accordingly, plus linter or indentation corrections

This commit is contained in:
Carlos Jimenez 2018-08-01 09:47:34 +02:00
parent 642f85594e
commit b5356eb07d
16 changed files with 6 additions and 9 deletions

View File

@ -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);
}); });
}); });

View File

@ -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;

View File

@ -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();
} }

View File

@ -19,7 +19,7 @@ class Controller extends FilterTicketList {
} }
return sum; return sum;
} }
base() { base() {
let sum; let sum;
if (this.sales) { if (this.sales) {

View File

@ -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', () => {
}); });
}); });
}); });
}); */ }); */