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:
parent
b253e6f344
commit
22c6d96514
1 changed files with 3 additions and 3 deletions
|
@ -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');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue