Use arrow functions

This commit is contained in:
Daniel Imms
2023-09-02 09:11:15 -07:00
parent 93aae670ba
commit 5e628d7fc6
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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.#');
+1 -1
View File
@@ -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());
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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(() => {
+1 -1
View File
@@ -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(`