refactor in all client specs to next describes accordingly

This commit is contained in:
Carlos 2017-09-04 15:06:43 +02:00
parent 0f6e81ce83
commit 352e68ed58
10 changed files with 281 additions and 257 deletions

View File

@ -1,6 +1,7 @@
import './address-create.js'; import './address-create.js';
describe('Component vnAddressCreate', () => { describe('Client', () => {
describe('Component vnAddressCreate', () => {
let $componentController; let $componentController;
let $state; let $state;
@ -20,4 +21,5 @@ describe('Component vnAddressCreate', () => {
expect(controller.address.clientFk).toBe(1234); expect(controller.address.clientFk).toBe(1234);
expect(controller.address.enabled).toBe(true); expect(controller.address.enabled).toBe(true);
}); });
});
}); });

View File

@ -1,6 +1,7 @@
import './address-edit.js'; import './address-edit.js';
describe('Component vnAddressEdit', () => { describe('Client', () => {
describe('Component vnAddressEdit', () => {
let $componentController; let $componentController;
let $state; let $state;
@ -18,4 +19,5 @@ describe('Component vnAddressEdit', () => {
let controller = $componentController('vnAddressEdit', {$state: $state}); let controller = $componentController('vnAddressEdit', {$state: $state});
expect(controller.address.id).toBe(1234); expect(controller.address.id).toBe(1234);
}); });
});
}); });

View File

@ -1,6 +1,7 @@
import './billing-data.js'; import './billing-data.js';
describe('Component vnClientBillingData', () => { describe('Client', () => {
describe('Component vnClientBillingData', () => {
let $componentController; let $componentController;
let $httpBackend; let $httpBackend;
let $scope; let $scope;
@ -77,4 +78,5 @@ describe('Component vnClientBillingData', () => {
$httpBackend.flush(); $httpBackend.flush();
}); });
}); });
});
}); });

View File

@ -1,6 +1,7 @@
import './card.js'; import './card.js';
describe('Component vnClientCard', () => { describe('Client', () => {
describe('Component vnClientCard', () => {
let $componentController; let $componentController;
let $scope; let $scope;
@ -18,4 +19,5 @@ describe('Component vnClientCard', () => {
expect(controller.client).toBeDefined(); expect(controller.client).toBeDefined();
expect(controller.client).toBe(null); expect(controller.client).toBe(null);
}); });
});
}); });

View File

@ -1,6 +1,7 @@
import './create.js'; import './create.js';
describe('Component vnClientCreate', () => { describe('Client', () => {
describe('Component vnClientCreate', () => {
let $componentController; let $componentController;
let $scope; let $scope;
let $state; let $state;
@ -39,4 +40,5 @@ describe('Component vnClientCreate', () => {
expect(controller.$state.go).toHaveBeenCalledWith('clientCard.basicData', {id: '1234'}); expect(controller.$state.go).toHaveBeenCalledWith('clientCard.basicData', {id: '1234'});
}); });
}); });
});
}); });

View File

@ -1,6 +1,7 @@
import './index.js'; import './index.js';
describe('Component vnClientIndex', () => { describe('Client', () => {
describe('Component vnClientIndex', () => {
let $componentController; let $componentController;
beforeEach(() => { beforeEach(() => {
@ -30,4 +31,5 @@ describe('Component vnClientIndex', () => {
expect(index.filter.search).toBe('batman'); expect(index.filter.search).toBe('batman');
}); });
}); });
});
}); });

View File

@ -1,6 +1,7 @@
import './note-create.js'; import './note-create.js';
describe('Component vnNoteCreate', () => { describe('Client', () => {
describe('Component vnNoteCreate', () => {
let $componentController; let $componentController;
let $state; let $state;
@ -19,4 +20,5 @@ describe('Component vnNoteCreate', () => {
expect(controller.note.clientFk).toBe(1234); expect(controller.note.clientFk).toBe(1234);
expect(controller.note.client).toBe(undefined); expect(controller.note.client).toBe(undefined);
}); });
});
}); });

View File

@ -1,6 +1,7 @@
import './notes.js'; import './notes.js';
describe('Component vnClientNotes', () => { describe('Client', () => {
describe('Component vnClientNotes', () => {
let $componentController; let $componentController;
let $state; let $state;
let $httpBackend; let $httpBackend;
@ -48,4 +49,5 @@ describe('Component vnClientNotes', () => {
expect(controller.$state.go).toHaveBeenCalledWith('clientCard.notes.create', Object({id: '1234'})); expect(controller.$state.go).toHaveBeenCalledWith('clientCard.notes.create', Object({id: '1234'}));
}); });
}); });
});
}); });

View File

@ -1,6 +1,7 @@
import './search-panel.js'; import './search-panel.js';
describe('Component vnClientSearchPanel', () => { describe('Client', () => {
describe('Component vnClientSearchPanel', () => {
let $componentController; let $componentController;
let $window; let $window;
@ -34,4 +35,5 @@ describe('Component vnClientSearchPanel', () => {
expect(controller.filter).toBe(JSON.parse({data: 'data'})); expect(controller.filter).toBe(JSON.parse({data: 'data'}));
}); });
}); });
});
}); });

View File

@ -0,0 +1,6 @@
import './autocomplete.js';
describe('Core', () => {
describe('Component mdlUpdate', () => {
});
});