Skip to content

Commit

Permalink
add test to multple-sheets-arrays.xlsx
Browse files Browse the repository at this point in the history
  • Loading branch information
stevds committed Aug 9, 2018
1 parent e732f9c commit 306ea34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/crud-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,8 @@ describe("CRUD operations", function() {
for (let sheetNumber = 1; sheetNumber <= 2; sheetNumber++) {
// Set up some placeholder values matching the placeholders in the template
var values = {
page: 'page: ' + sheetNumber
page: 'page: ' + sheetNumber,
sheetNumber
};

// Perform substitution
Expand All @@ -868,6 +869,8 @@ describe("CRUD operations", function() {
buster.expect(sheet2).toBeDefined();
buster.expect(getSharedString(sharedStrings, sheet1, "A1")).toEqual("page: 1");
buster.expect(getSharedString(sharedStrings, sheet2, "A1")).toEqual("page: 2");
buster.expect(getSharedString(sharedStrings, sheet1, "A2")).toEqual("Page 1");
buster.expect(getSharedString(sharedStrings, sheet2, "A2")).toEqual("Page 2");

fs.writeFileSync('test/output/multple-sheets-arrays.xlsx', newData, 'binary');
done();
Expand Down
Binary file modified test/templates/multple-sheets-arrays.xlsx
Binary file not shown.

0 comments on commit 306ea34

Please sign in to comment.