test fixed & export sample table
gitea/salix/1466-print_refactor There was a failure building this commit Details

This commit is contained in:
Joan Sanchez 2019-11-06 10:55:04 +01:00
parent 3d701f534a
commit 3cd92211a1
3 changed files with 19 additions and 606 deletions

File diff suppressed because one or more lines are too long

View File

@ -46,7 +46,8 @@ TABLES=(
claimRedelivery
claimResult
ticketUpdateAction
state
state,
sample
)
dump_tables ${TABLES[@]}
@ -56,7 +57,6 @@ TABLES=(
businessReasonEnd
container
department
escritos
Grupos
iva_group_codigo
tarifa_componentes

View File

@ -40,9 +40,17 @@ describe('Client', () => {
controller = $componentController('vnClientSampleCreate', {$scope, $state});
}));
xdescribe('showPreview()', () => {
describe('showPreview()', () => {
it(`should perform a query (GET) and open a sample preview`, () => {
spyOn(controller.$scope.showPreview, 'show');
const element = document.createElement('div');
document.body.querySelector = () => {
return {
querySelector: () => {
return element;
}
};
};
controller.$scope.sampleType.selection = {
hasCompany: false,
@ -71,6 +79,14 @@ describe('Client', () => {
it(`should perform a query (GET) with companyFk param and open a sample preview`, () => {
spyOn(controller.$scope.showPreview, 'show');
const element = document.createElement('div');
document.body.querySelector = () => {
return {
querySelector: () => {
return element;
}
};
};
controller.$scope.sampleType.selection = {
hasCompany: true,