Skip to content

Commit 5e628d7

Browse files
committed
Use arrow functions
1 parent 93aae67 commit 5e628d7

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

test/playwright/CharWidth.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test.afterAll(async () => await ctx.page.close());
1515

1616
test.beforeEach(async () => await ctx.proxy.reset());
1717

18-
test.describe('CharWidth Integration Tests', function(): void {
18+
test.describe('CharWidth Integration Tests', () => {
1919
test.describe('getStringCellWidth', () => {
2020
test('ASCII chars', async () => {
2121
await ctx.proxy.write('This is just ASCII text.#');

test/playwright/InputHandler.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test.beforeAll(async ({ browser }) => {
1515
test.afterAll(async () => await ctx.page.close());
1616

1717

18-
test.describe('InputHandler Integration Tests', function (): void {
18+
test.describe('InputHandler Integration Tests', () => {
1919

2020
test.describe('CSI', () => {
2121
test.beforeEach(async () => await ctx.proxy.reset());

test/playwright/MouseTracking.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ function parseReport(encoding: string, msg: number[]): { state: any, row: number
164164
}
165165
}
166166

167-
test.describe('Mouse Tracking Tests', function (): void {
168-
test.beforeAll(async function(): Promise<void> {
167+
test.describe('Mouse Tracking Tests', () => {
168+
test.beforeAll(async () => {
169169
await ctx.page.setViewportSize({ width, height });
170170
// patch terminal to get the onData calls
171171
// we encode the msg here to an array of codes to not lose bytes

test/playwright/Parser.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ declare global {
2626
}
2727
}
2828

29-
test.describe('Parser Integration Tests', function (): void {
29+
test.describe('Parser Integration Tests', () => {
3030
test.beforeEach(async () => await ctx.proxy.reset());
3131
test.afterEach(async () => {
3232
await ctx.page.evaluate(() => {

test/playwright/Terminal.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ test.describe('API Integration Tests', () => {
378378
await pollFor(ctx.page, `window.callCount`, 2);
379379
});
380380

381-
test('onRender', async function(): Promise<void> {
381+
test('onRender', async () => {
382382
await openTerminal(ctx);
383383
await timeout(20); // Ensure all init events are fired
384384
await ctx.page.evaluate(`

0 commit comments

Comments
 (0)