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();