summaryrefslogtreecommitdiff
path: root/packages/db/test/static-remote.test.js
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2024-05-21 17:12:39 -0400
committerGravatar GitHub <noreply@github.com> 2024-05-21 17:12:39 -0400
commite14ce5726df73e2988fe1a39e078ef2d66d2f4a8 (patch)
treec3ff9591130c35e4f8a9880f591279b50e8d3ef3 /packages/db/test/static-remote.test.js
parentb78e83f448d142e83be592f6249c4822e7cd5726 (diff)
downloadastro-e14ce5726df73e2988fe1a39e078ef2d66d2f4a8.tar.gz
astro-e14ce5726df73e2988fe1a39e078ef2d66d2f4a8.tar.zst
astro-e14ce5726df73e2988fe1a39e078ef2d66d2f4a8.zip
Fix inconsistent results from raw SQL (#11091)
* Fix inconsistent results from raw SQL * Remove .only * Fix * Update packages/db/src/runtime/db-client.ts Co-authored-by: Ben Holmes <hey@bholmes.dev> --------- Co-authored-by: Ben Holmes <hey@bholmes.dev>
Diffstat (limited to 'packages/db/test/static-remote.test.js')
-rw-r--r--packages/db/test/static-remote.test.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/db/test/static-remote.test.js b/packages/db/test/static-remote.test.js
index 7adcf6976..492a0d385 100644
--- a/packages/db/test/static-remote.test.js
+++ b/packages/db/test/static-remote.test.js
@@ -30,5 +30,12 @@ describe('astro:db', () => {
expect($('li').length).to.equal(1);
});
+
+ it('Returns correct shape from db.run()', async () => {
+ const html = await fixture.readFile('/run/index.html');
+ const $ = cheerioLoad(html);
+
+ expect($('#row').text()).to.equal('1');
+ });
});
});