diff --git a/tests/util/Components.js b/tests/util/Components.js index 6d45417932..694168fb6f 100644 --- a/tests/util/Components.js +++ b/tests/util/Components.js @@ -286,5 +286,17 @@ describe('Components', () => { }); }); }); + + describe('testComponentsDetect', () => { + it('should log Program:exit instruction', () => { + testComponentsDetect({ + code: '', + }, { + 'Program:exit': () => true, + }, (_components, instructionResults) => { + assert.deepEqual(instructionResults, [{ type: 'Program:exit', result: true }]); + }); + }); + }); }); });