Skip to content

Commit 052509e

Browse files
Copilotmrjf
andauthored
Address CI failures for read_html PR
Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
1 parent 4c06d75 commit 052509e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/io/read_html.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,11 @@ describe("readHtml – filtering", () => {
174174
<tr><td></td></tr>
175175
<tr><td>2</td></tr>
176176
</table>`;
177-
// With skipBlankLines=true (default) and naValues, the blank row is still
178-
// present as null. skipBlankLines only drops rows where ALL cells are
179-
// whitespace-only.
177+
const [dfDefault] = readHtml(html);
178+
expect(dfDefault!.shape[0]).toBe(2); // 1, 2
179+
expect(dfDefault!.col("v").toArray()).toEqual([1, 2]);
180+
181+
// With skipBlankLines=false, the blank row is preserved and coerced to null.
180182
const [df] = readHtml(html, { skipBlankLines: false });
181183
expect(df!.shape[0]).toBe(3); // 1, null, 2
182184
});

0 commit comments

Comments
 (0)