Skip to content

Commit 620505f

Browse files
Copilotmathiasrw
andcommitted
Rename test file to test848.js and create dedicated test848.xlsx file
- Renamed test-multisheet-import.js to test848.js - Created dedicated test848.xlsx file (copied from test242.xlsx) - Updated all test references to use test848.xlsx instead of test242.xlsx - All 7 tests passing Co-authored-by: mathiasrw <[email protected]>
1 parent d356fda commit 620505f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/test-multisheet-import.js renamed to test/test848.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ if (typeof exports === 'object') {
77
var dirname = './';
88
}
99

10-
describe('Test multi-sheet XLSX import', function () {
10+
describe('Test 848 - Multi-sheet XLSX import', function () {
1111
it('1. Import all sheets using sheetid: "*"', function (done) {
1212
alasql(
13-
'select * from xlsx("' + dirname + 'test242.xlsx", {headers:true, sheetid:"*"})',
13+
'select * from xlsx("' + dirname + 'test848.xlsx", {headers:true, sheetid:"*"})',
1414
[],
1515
function (data) {
1616
// Should return a flat array with _sheet property on each row
@@ -34,7 +34,7 @@ describe('Test multi-sheet XLSX import', function () {
3434

3535
it('2. Import multiple specific sheets using sheetid array', function (done) {
3636
alasql(
37-
'select * from xlsx("' + dirname + 'test242.xlsx", {headers:true, sheetid:?})',
37+
'select * from xlsx("' + dirname + 'test848.xlsx", {headers:true, sheetid:?})',
3838
[['Sheet1', 'Sheet2']],
3939
function (data) {
4040
// Should return a flat array with _sheet property
@@ -48,7 +48,7 @@ describe('Test multi-sheet XLSX import', function () {
4848

4949
it('3. Import specific sheets by index using sheetid array', function (done) {
5050
alasql(
51-
'select * from xlsx("' + dirname + 'test242.xlsx", {headers:true, sheetid:?})',
51+
'select * from xlsx("' + dirname + 'test848.xlsx", {headers:true, sheetid:?})',
5252
[[0, 1]],
5353
function (data) {
5454
// Should return a flat array with _sheet property
@@ -62,7 +62,7 @@ describe('Test multi-sheet XLSX import', function () {
6262

6363
it('4. Original single sheet behavior should still work', function (done) {
6464
alasql(
65-
'select * from xlsx("' + dirname + 'test242.xlsx", {headers:true})',
65+
'select * from xlsx("' + dirname + 'test848.xlsx", {headers:true})',
6666
[],
6767
function (data) {
6868
// Should return an array (original behavior)
@@ -77,7 +77,7 @@ describe('Test multi-sheet XLSX import', function () {
7777

7878
it('5. Original single sheet with explicit sheetid should still work', function (done) {
7979
alasql(
80-
'select * from xlsx("' + dirname + 'test242.xlsx", {headers:true, sheetid:"Sheet2"})',
80+
'select * from xlsx("' + dirname + 'test848.xlsx", {headers:true, sheetid:"Sheet2"})',
8181
[],
8282
function (data) {
8383
// Should return an array (original behavior)
@@ -95,7 +95,7 @@ describe('Test multi-sheet XLSX import', function () {
9595
alasql(
9696
'select * from xlsx("' +
9797
dirname +
98-
'test242.xlsx", {headers:true, sheetid:"*"}) WHERE _sheet = "Sheet2"',
98+
'test848.xlsx", {headers:true, sheetid:"*"}) WHERE _sheet = "Sheet2"',
9999
[],
100100
function (data) {
101101
// Should only return rows from Sheet2
@@ -114,7 +114,7 @@ describe('Test multi-sheet XLSX import', function () {
114114
it('7. Count rows per sheet', function (done) {
115115
// First get the data, then query it
116116
alasql(
117-
'SELECT * FROM xlsx("' + dirname + 'test242.xlsx", {headers:true, sheetid:"*"})',
117+
'SELECT * FROM xlsx("' + dirname + 'test848.xlsx", {headers:true, sheetid:"*"})',
118118
[],
119119
function (allData) {
120120
// Now count using a separate query

test/test848.xlsx

37.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)