diff options
author | 2024-05-22 09:16:49 +0100 | |
---|---|---|
committer | 2024-05-22 09:16:49 +0100 | |
commit | 05ef10cdc38878746c91e9032ccb57002ad66963 (patch) | |
tree | a12d925e7b54d6535dc5c1c2097fcefb3dd08aae /packages/db/test/db-in-src.test.js | |
parent | 9ddd6387a7e70d1111dd4a60450d3c710325380c (diff) | |
download | astro-05ef10cdc38878746c91e9032ccb57002ad66963.tar.gz astro-05ef10cdc38878746c91e9032ccb57002ad66963.tar.zst astro-05ef10cdc38878746c91e9032ccb57002ad66963.zip |
chore(db): move tests to node runner (#11109)
Diffstat (limited to 'packages/db/test/db-in-src.test.js')
-rw-r--r-- | packages/db/test/db-in-src.test.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/packages/db/test/db-in-src.test.js b/packages/db/test/db-in-src.test.js index 460438001..5445585b4 100644 --- a/packages/db/test/db-in-src.test.js +++ b/packages/db/test/db-in-src.test.js @@ -1,4 +1,5 @@ -import { expect } from 'chai'; +import { describe, it, before, after } from "node:test"; +import assert from "node:assert/strict"; import { load as cheerioLoad } from 'cheerio'; import testAdapter from '../../astro/test/test-adapter.js'; import { loadFixture } from '../../astro/test/test-utils.js'; @@ -30,8 +31,14 @@ describe('astro:db', () => { const $ = cheerioLoad(html); const ul = $('.users-list'); - expect(ul.children()).to.have.a.lengthOf(1); - expect($('.users-list li').text()).to.equal('Mario'); + assert.equal( + ul.children().length, + 1 + ); + assert.match( + $('.users-list li').text(), + /Mario/ + ) }); }); }); |