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';
describe('Component vnAddressCreate', () => {
describe('Client', () => {
describe('Component vnAddressCreate', () => {
let $componentController;
let $state;
@ -20,4 +21,5 @@ describe('Component vnAddressCreate', () => {
expect(controller.address.clientFk).toBe(1234);
expect(controller.address.enabled).toBe(true);
});
});
});

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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