Skip to content

Commit

Permalink
Update more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Aug 3, 2023
1 parent c228e7f commit 5625b33
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/Workbook.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion dist/Xlsx.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
12 changes: 12 additions & 0 deletions tests/FsSpreadsheet.Exceljs.Tests/Workbook.Tests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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
]

Binary file added tests/JS/TestFiles/isa.assay.xlsx
Binary file not shown.

0 comments on commit 5625b33

Please sign in to comment.