Fix test "Proposed API check"

This commit is contained in:
Simon Lamon
2022-10-15 10:25:39 +02:00
committed by GitHub
parent 6bbe5a82a8
commit 073aa6d439
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ describe('Headless API Tests', function (): void {
it('Proposed API check', async () => {
term = new Terminal({ allowProposedApi: false });
throws(() => term.buffer, (error) => error.message === 'You must set the allowProposedApi option to true to use proposed API');
throws(() => term.markers, (error) => error.message === 'You must set the allowProposedApi option to true to use proposed API');
});
it('write', async () => {
+1 -1
View File
@@ -35,7 +35,7 @@ describe('API Integration Tests', function(): void {
await openTerminal(page, { allowProposedApi: false });
await page.evaluate(`
try {
window.term.buffer;
window.term.markers;
} catch (e) {
window.throwMessage = e.message;
}