test(web): align workbook export buffer typing
This commit is contained in:
@@ -14,7 +14,7 @@ describe("workbook export helpers", () => {
|
||||
|
||||
const ExcelJS = await import("exceljs");
|
||||
const workbook = new ExcelJS.Workbook();
|
||||
await workbook.xlsx.load(Buffer.from(buffer));
|
||||
await workbook.xlsx.load(buffer as Parameters<typeof workbook.xlsx.load>[0]);
|
||||
|
||||
const worksheet = workbook.getWorksheet("Skills");
|
||||
expect(worksheet).toBeDefined();
|
||||
@@ -37,7 +37,7 @@ describe("workbook export helpers", () => {
|
||||
|
||||
const ExcelJS = await import("exceljs");
|
||||
const workbook = new ExcelJS.Workbook();
|
||||
await workbook.xlsx.load(Buffer.from(buffer));
|
||||
await workbook.xlsx.load(buffer as Parameters<typeof workbook.xlsx.load>[0]);
|
||||
|
||||
expect(workbook.worksheets.map((sheet) => sheet.name)).toEqual([
|
||||
"Overview",
|
||||
|
||||
Reference in New Issue
Block a user