Skip to content

Commit

Permalink
#789: add exitCode tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Mar 28, 2023
1 parent 8eb9047 commit fb62c85
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/mobileMessage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe('mobileMessage', () => {
// WHEN
await handler.retrieve('testInstance/testBU', ['mobileMessage']);
// THEN
assert.equal(!!process.exitCode, false, 'retrieve should not have thrown an error');
// get results from cache
const result = cache.getCache();
assert.equal(
Expand Down Expand Up @@ -52,6 +53,7 @@ describe('mobileMessage', () => {
// // WHEN
// await handler.deploy('testInstance/testBU', ['mobileMessage']);
// // THEN
// assert.equal(!!process.exitCode, false, 'deploy should not have thrown an error');
// // get results from cache
// const result = cache.getCache();
// assert.equal(
Expand Down Expand Up @@ -93,6 +95,12 @@ describe('mobileMessage', () => {
// ['testExisting_mobileMessage'],
// 'testSourceMarket'
// );
// assert.equal(
// !!process.exitCode,
// false,
// 'buildTemplate should not have thrown an error'
// );

// assert.equal(
// result.mobileMessage ? Object.keys(result.mobileMessage).length : 0,
// 1,
Expand All @@ -114,6 +122,11 @@ describe('mobileMessage', () => {
// 'testExisting_mobileMessage',
// 'testTargetMarket'
// );
// assert.equal(
// !!process.exitCode,
// false,
// 'buildDefinition should not have thrown an error'
// );
// assert.deepEqual(
// await testUtils.getActualDeployJson('testExisting_mobileMessage', 'mobileMessage'),
// await testUtils.getExpectedJson('9999999', 'mobileMessage', 'build'),
Expand Down

0 comments on commit fb62c85

Please sign in to comment.