diff --git a/dist/Workbook.js b/dist/Workbook.js index cb28bb56..c499c8b8 100644 --- a/dist/Workbook.js +++ b/dist/Workbook.js @@ -1,6 +1,6 @@ import { FsWorkbook } from "./FsSpreadsheet/FsWorkbook.js"; import { addFsWorksheet, addJsWorksheet } from "./Worksheet.js"; -import { Excel } from "./fable_modules/Fable.Exceljs.1.5.0/ExcelJs.fs.js"; +import { Excel } from "./fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs.js"; import { disposeSafe, getEnumerator } from "./fable_modules/fable-library.4.1.3/Util.js"; export function toFsWorkbook(jswb) { diff --git a/dist/Xlsx.js b/dist/Xlsx.js index b1536cb3..3ccd4c14 100644 --- a/dist/Xlsx.js +++ b/dist/Xlsx.js @@ -1,5 +1,5 @@ import { PromiseBuilder__Delay_62FBFDE1, PromiseBuilder__Run_212F1D4B } from "./fable_modules/Fable.Promise.3.2.0/Promise.fs.js"; -import { Excel } from "./fable_modules/Fable.Exceljs.1.5.0/ExcelJs.fs.js"; +import { Excel } from "./fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs.js"; import { promise } from "./fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js"; import { toJsWorkbook, toFsWorkbook } from "./Workbook.js"; import { class_type } from "./fable_modules/fable-library.4.1.3/Reflection.js"; diff --git a/tests/FsSpreadsheet.Exceljs.Tests/Workbook.Tests.fs b/tests/FsSpreadsheet.Exceljs.Tests/Workbook.Tests.fs index f5a4293d..89b6ba99 100644 --- a/tests/FsSpreadsheet.Exceljs.Tests/Workbook.Tests.fs +++ b/tests/FsSpreadsheet.Exceljs.Tests/Workbook.Tests.fs @@ -275,8 +275,20 @@ let tests_toJsWorkbook = testList "toJsWorkbook" [ Expect.equal (table.ColumnCount()) 3 "column count" ] +open Fable.Core + +let tests_xlsx = testList "xlsx" [ + testList "read" [ + testAsync "isa.assay.xlsx" { + let! fswb = Xlsx.fromXlsxFile("./tests/JS/TestFiles/isa.assay.xlsx") |> Async.AwaitPromise + Expect.equal (fswb.GetWorksheets().Count) 5 "Count" + } + ] +] + let main = testList "JsWorkbook<->FsWorkbook" [ tests_toFsWorkbook tests_toJsWorkbook + tests_xlsx ] diff --git a/tests/JS/TestFiles/isa.assay.xlsx b/tests/JS/TestFiles/isa.assay.xlsx new file mode 100644 index 00000000..b33b48b1 Binary files /dev/null and b/tests/JS/TestFiles/isa.assay.xlsx differ