Skip to content

Commit 1971695

Browse files
committed
Fix api test
1 parent 3d29357 commit 1971695

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/api/Terminal.api.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ describe('API Integration Tests', function(): void {
297297
});
298298
});
299299

300-
describe('Events', () => {
300+
describe.only('Events', () => {
301301
it('onCursorMove', async () => {
302302
await openTerminal(page);
303303
await page.evaluate(`
@@ -414,11 +414,11 @@ describe('API Integration Tests', function(): void {
414414
await openTerminal(page);
415415
await page.evaluate(`
416416
window.calls = [];
417-
window.term.onBell(e => window.calls.push(e));
417+
window.term.onBell(() => window.calls.push(true));
418418
`);
419419
await pollFor(page, `window.calls`, []);
420-
await page.evaluate(`window.term.write('\\a')`);
421-
await pollFor(page, `window.calls`, ['foo']);
420+
await page.evaluate(`window.term.write('\\x07')`);
421+
await pollFor(page, `window.calls`, [true]);
422422
});
423423
});
424424

0 commit comments

Comments
 (0)