mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Use arrow functions
This commit is contained in:
@@ -15,7 +15,7 @@ test.afterAll(async () => await ctx.page.close());
|
||||
|
||||
test.beforeEach(async () => await ctx.proxy.reset());
|
||||
|
||||
test.describe('CharWidth Integration Tests', function(): void {
|
||||
test.describe('CharWidth Integration Tests', () => {
|
||||
test.describe('getStringCellWidth', () => {
|
||||
test('ASCII chars', async () => {
|
||||
await ctx.proxy.write('This is just ASCII text.#');
|
||||
|
||||
@@ -15,7 +15,7 @@ test.beforeAll(async ({ browser }) => {
|
||||
test.afterAll(async () => await ctx.page.close());
|
||||
|
||||
|
||||
test.describe('InputHandler Integration Tests', function (): void {
|
||||
test.describe('InputHandler Integration Tests', () => {
|
||||
|
||||
test.describe('CSI', () => {
|
||||
test.beforeEach(async () => await ctx.proxy.reset());
|
||||
|
||||
@@ -164,8 +164,8 @@ function parseReport(encoding: string, msg: number[]): { state: any, row: number
|
||||
}
|
||||
}
|
||||
|
||||
test.describe('Mouse Tracking Tests', function (): void {
|
||||
test.beforeAll(async function(): Promise<void> {
|
||||
test.describe('Mouse Tracking Tests', () => {
|
||||
test.beforeAll(async () => {
|
||||
await ctx.page.setViewportSize({ width, height });
|
||||
// patch terminal to get the onData calls
|
||||
// we encode the msg here to an array of codes to not lose bytes
|
||||
|
||||
@@ -26,7 +26,7 @@ declare global {
|
||||
}
|
||||
}
|
||||
|
||||
test.describe('Parser Integration Tests', function (): void {
|
||||
test.describe('Parser Integration Tests', () => {
|
||||
test.beforeEach(async () => await ctx.proxy.reset());
|
||||
test.afterEach(async () => {
|
||||
await ctx.page.evaluate(() => {
|
||||
|
||||
@@ -378,7 +378,7 @@ test.describe('API Integration Tests', () => {
|
||||
await pollFor(ctx.page, `window.callCount`, 2);
|
||||
});
|
||||
|
||||
test('onRender', async function(): Promise<void> {
|
||||
test('onRender', async () => {
|
||||
await openTerminal(ctx);
|
||||
await timeout(20); // Ensure all init events are fired
|
||||
await ctx.page.evaluate(`
|
||||
|
||||
Reference in New Issue
Block a user