Skip to content

Commit

Permalink
#1461: adapt test cases to new purge option
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Jan 28, 2025
1 parent 101ac13 commit 90fae05
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions test/general.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,7 @@ describe('GENERAL', () => {
);
const buName = 'testInstance/testBU';

handler.setOptions({ skipInteraction: true, purge: false });
// *** build: buildTemplate and buildDefinition chained ***
const definitionResult = await handler.build(
buName,
Expand Down Expand Up @@ -1515,7 +1516,7 @@ describe('GENERAL', () => {
const buName = 'testInstance/testBU';

// set skipInteraction to true to skip re-retrieving question
handler.setOptions({ dependencies: true, skipInteraction: true });
handler.setOptions({ dependencies: true, skipInteraction: true, purge: true });

// *** build: buildTemplate and buildDefinition chained ***
const definitionResult = await handler.build(
Expand Down Expand Up @@ -1617,7 +1618,12 @@ describe('GENERAL', () => {
);
const buName = 'testInstance/testBU';

handler.setOptions({ dependencies: true, retrieve: true, skipInteraction: true });
handler.setOptions({
dependencies: true,
retrieve: true,
skipInteraction: true,
purge: true,
});

// *** build: buildTemplate and buildDefinition chained ***
const definitionResult = await handler.build(
Expand Down Expand Up @@ -1729,6 +1735,7 @@ describe('GENERAL', () => {
'typeKeyCombo should not be undefined'
);
const buName = 'testInstance/testBU';
handler.setOptions({ skipInteraction: true, purge: false });

// *** build: buildTemplate and buildDefinition chained ***
const definitionResult = await handler.build(
Expand Down Expand Up @@ -1909,7 +1916,7 @@ describe('GENERAL', () => {
const buName = 'testInstance/testBU';

// set skipInteraction to true to skip re-retrieving question
handler.setOptions({ dependencies: true, skipInteraction: true });
handler.setOptions({ dependencies: true, skipInteraction: true, purge: true });

// *** build: buildTemplate and buildDefinition chained ***
const definitionResult = await handler.build(
Expand Down

0 comments on commit 90fae05

Please sign in to comment.