From 22c6d965146e64f2ebfaef1b77bc33e739ccf48f Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Tue, 9 Jan 2024 16:33:35 -0500 Subject: [PATCH] fix: ul test. It passes now! --- packages/db/test/basics.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/db/test/basics.test.js b/packages/db/test/basics.test.js index a437240ebb..54cd38e737 100644 --- a/packages/db/test/basics.test.js +++ b/packages/db/test/basics.test.js @@ -1,6 +1,6 @@ import { expect } from 'chai'; import { load as cheerioLoad } from 'cheerio'; -import { isWindows, loadFixture } from '../../astro/test/test-utils.js'; +import { loadFixture } from '../../astro/test/test-utils.js'; describe('astro:db', () => { let fixture; @@ -20,8 +20,8 @@ describe('astro:db', () => { const $ = cheerioLoad(html); const ul = $('ul'); - expect(ul).to.have.a.lengthOf(5); - expect($('li').text()).to.equal('Ben'); + expect(ul.children()).to.have.a.lengthOf(5); + expect(ul.children().eq(0).text()).to.equal('Ben'); }); }); });