0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00

fix: ul test. It passes now!

This commit is contained in:
bholmesdev 2024-01-09 16:33:35 -05:00 committed by Nate Moore
parent b253e6f344
commit 22c6d96514

View file

@ -1,6 +1,6 @@
import { expect } from 'chai'; import { expect } from 'chai';
import { load as cheerioLoad } from 'cheerio'; 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', () => { describe('astro:db', () => {
let fixture; let fixture;
@ -20,8 +20,8 @@ describe('astro:db', () => {
const $ = cheerioLoad(html); const $ = cheerioLoad(html);
const ul = $('ul'); const ul = $('ul');
expect(ul).to.have.a.lengthOf(5); expect(ul.children()).to.have.a.lengthOf(5);
expect($('li').text()).to.equal('Ben'); expect(ul.children().eq(0).text()).to.equal('Ben');
}); });
}); });
}); });