Fix test "Proposed API check"
This commit is contained in:
@@ -22,7 +22,7 @@ describe('Headless API Tests', function (): void {
|
|||||||
|
|
||||||
it('Proposed API check', async () => {
|
it('Proposed API check', async () => {
|
||||||
term = new Terminal({ allowProposedApi: false });
|
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 () => {
|
it('write', async () => {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ describe('API Integration Tests', function(): void {
|
|||||||
await openTerminal(page, { allowProposedApi: false });
|
await openTerminal(page, { allowProposedApi: false });
|
||||||
await page.evaluate(`
|
await page.evaluate(`
|
||||||
try {
|
try {
|
||||||
window.term.buffer;
|
window.term.markers;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
window.throwMessage = e.message;
|
window.throwMessage = e.message;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user