From 073aa6d439b7e025d355d0be9ebc84677f3f7208 Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Sat, 15 Oct 2022 10:25:39 +0200 Subject: [PATCH] Fix test "Proposed API check" --- src/headless/public/Terminal.test.ts | 2 +- test/api/Terminal.api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/headless/public/Terminal.test.ts b/src/headless/public/Terminal.test.ts index 43aaf628..c7acc818 100644 --- a/src/headless/public/Terminal.test.ts +++ b/src/headless/public/Terminal.test.ts @@ -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 () => { diff --git a/test/api/Terminal.api.ts b/test/api/Terminal.api.ts index 502f438c..27fb51a7 100644 --- a/test/api/Terminal.api.ts +++ b/test/api/Terminal.api.ts @@ -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; }