From 3fe15c12a129888eb3a3afad4e3bca4b38f49df5 Mon Sep 17 00:00:00 2001 From: Theo Ephraim Date: Sat, 31 Aug 2024 14:30:43 -0700 Subject: [PATCH] fix bugs introduced by PRs --- src/lib/GoogleSpreadsheetWorksheet.ts | 4 ++-- src/test/manage.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/GoogleSpreadsheetWorksheet.ts b/src/lib/GoogleSpreadsheetWorksheet.ts index 0160b3e..176dbf7 100644 --- a/src/lib/GoogleSpreadsheetWorksheet.ts +++ b/src/lib/GoogleSpreadsheetWorksheet.ts @@ -346,10 +346,10 @@ export class GoogleSpreadsheetWorksheet { async loadHeaderRow(headerRowIndex?: number) { if (headerRowIndex !== undefined) this._headerRowIndex = headerRowIndex; const rows = await this.getCellsInRange(this._headerRange); - await this._processHeaderRow(rows); + this._processHeaderRow(rows); } - private async _processHeaderRow(rows: any[]) { + private _processHeaderRow(rows: any[]) { if (!rows) { throw new Error('No values in the header row - fill the first row with header values before trying to interact with rows'); } diff --git a/src/test/manage.test.ts b/src/test/manage.test.ts index c65a7b0..a63e741 100644 --- a/src/test/manage.test.ts +++ b/src/test/manage.test.ts @@ -194,7 +194,7 @@ describe('Managing doc info and sheets', () => { let sheet: GoogleSpreadsheetWorksheet; beforeAll(async () => { - sheet = await doc.addSheet({ title: 'validation rules test' }); + sheet = await doc.addSheet({ title: `validation rules test ${+new Date()}` }); }); afterAll(async () => { await sheet.delete();