Skip to content

Commit

Permalink
#782: add errorCode checks for tests on mobileKeyword, mobileMessage …
Browse files Browse the repository at this point in the history
…and query
  • Loading branch information
JoernBerkefeld committed Apr 11, 2023
1 parent f39103a commit 548768e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/mobileKeyword.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ describe('mobileKeyword', () => {
'testExisting_keyword',
]);
// THEN
assert.equal(!!process.exitCode, false, 'delete should not have thrown an error');

assert.equal(result, true, 'should have deleted the item');
return;
Expand All @@ -171,6 +172,11 @@ describe('mobileKeyword', () => {
['testExisting_keyword']
);
// THEN
assert.equal(
!!process.exitCode,
false,
'getFilesToCommit should not have thrown an error'
);
assert.equal(fileList.length, 2, 'expected only 2 file paths');

assert.equal(
Expand Down
6 changes: 6 additions & 0 deletions test/mobileMessage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ describe('mobileMessage', () => {
'NTIzOjc4OjA',
]);
// THEN
assert.equal(!!process.exitCode, false, 'delete should not have thrown an error');

assert.equal(result, true, 'should have deleted the item');
return;
Expand All @@ -173,6 +174,11 @@ describe('mobileMessage', () => {
['NTIzOjc4OjA']
);
// THEN
assert.equal(
!!process.exitCode,
false,
'getFilesToCommit should not have thrown an error'
);
assert.equal(fileList.length, 2, 'expected only 2 file paths');

assert.equal(
Expand Down
6 changes: 6 additions & 0 deletions test/query.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ describe('query', () => {
'testExistingQuery',
]);
// THEN
assert.equal(!!process.exitCode, false, 'delete should not have thrown an error');

assert.equal(result, true, 'should have deleted the item');
return;
Expand All @@ -259,6 +260,11 @@ describe('query', () => {
'testExistingQuery',
]);
// THEN
assert.equal(
!!process.exitCode,
false,
'getFilesToCommit should not have thrown an error'
);
assert.equal(fileList.length, 2, 'expected only 2 file paths');

assert.equal(
Expand Down

0 comments on commit 548768e

Please sign in to comment.