Skip to content

Commit 91a9bae

Browse files
committed
Updae autoreply test. Don't account for undefined fields (not present in response)
1 parent e0937ac commit 91a9bae

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

test/api-test.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,7 @@ describe('API tests', function () {
415415
name: '',
416416
subject: '',
417417
text: '',
418-
html: '',
419-
start: false,
420-
end: false,
421-
created: false
418+
html: ''
422419
});
423420

424421
r = await server
@@ -467,7 +464,6 @@ describe('API tests', function () {
467464
subject: '',
468465
text: 'Away from office until Dec.19',
469466
html: '',
470-
start: false,
471467
end: '2017-12-19T00:00:00.000Z',
472468
created: autoreplyId.getTimestamp().toISOString()
473469
});
@@ -480,10 +476,7 @@ describe('API tests', function () {
480476
name: '',
481477
subject: '',
482478
text: '',
483-
html: '',
484-
start: false,
485-
end: false,
486-
created: false
479+
html: ''
487480
});
488481
});
489482
});

0 commit comments

Comments
 (0)