Skip to content

Commit

Permalink
Use arrow functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Sep 2, 2023
1 parent 93aae67 commit 5e628d7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/playwright/CharWidth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.#');
Expand Down
2 changes: 1 addition & 1 deletion test/playwright/InputHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
4 changes: 2 additions & 2 deletions test/playwright/MouseTracking.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/playwright/Parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/playwright/Terminal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(`
Expand Down

0 comments on commit 5e628d7

Please sign in to comment.