test fixed & export sample table
gitea/salix/1466-print_refactor There was a failure building this commit
Details
gitea/salix/1466-print_refactor There was a failure building this commit
Details
This commit is contained in:
parent
3d701f534a
commit
3cd92211a1
File diff suppressed because one or more lines are too long
|
@ -46,7 +46,8 @@ TABLES=(
|
||||||
claimRedelivery
|
claimRedelivery
|
||||||
claimResult
|
claimResult
|
||||||
ticketUpdateAction
|
ticketUpdateAction
|
||||||
state
|
state,
|
||||||
|
sample
|
||||||
)
|
)
|
||||||
dump_tables ${TABLES[@]}
|
dump_tables ${TABLES[@]}
|
||||||
|
|
||||||
|
@ -56,7 +57,6 @@ TABLES=(
|
||||||
businessReasonEnd
|
businessReasonEnd
|
||||||
container
|
container
|
||||||
department
|
department
|
||||||
escritos
|
|
||||||
Grupos
|
Grupos
|
||||||
iva_group_codigo
|
iva_group_codigo
|
||||||
tarifa_componentes
|
tarifa_componentes
|
||||||
|
|
|
@ -40,9 +40,17 @@ describe('Client', () => {
|
||||||
controller = $componentController('vnClientSampleCreate', {$scope, $state});
|
controller = $componentController('vnClientSampleCreate', {$scope, $state});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
xdescribe('showPreview()', () => {
|
describe('showPreview()', () => {
|
||||||
it(`should perform a query (GET) and open a sample preview`, () => {
|
it(`should perform a query (GET) and open a sample preview`, () => {
|
||||||
spyOn(controller.$scope.showPreview, 'show');
|
spyOn(controller.$scope.showPreview, 'show');
|
||||||
|
const element = document.createElement('div');
|
||||||
|
document.body.querySelector = () => {
|
||||||
|
return {
|
||||||
|
querySelector: () => {
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
controller.$scope.sampleType.selection = {
|
controller.$scope.sampleType.selection = {
|
||||||
hasCompany: false,
|
hasCompany: false,
|
||||||
|
@ -71,6 +79,14 @@ describe('Client', () => {
|
||||||
|
|
||||||
it(`should perform a query (GET) with companyFk param and open a sample preview`, () => {
|
it(`should perform a query (GET) with companyFk param and open a sample preview`, () => {
|
||||||
spyOn(controller.$scope.showPreview, 'show');
|
spyOn(controller.$scope.showPreview, 'show');
|
||||||
|
const element = document.createElement('div');
|
||||||
|
document.body.querySelector = () => {
|
||||||
|
return {
|
||||||
|
querySelector: () => {
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
controller.$scope.sampleType.selection = {
|
controller.$scope.sampleType.selection = {
|
||||||
hasCompany: true,
|
hasCompany: true,
|
||||||
|
|
Loading…
Reference in New Issue