summaryrefslogtreecommitdiff
path: root/packages/db/test/integrations.test.js
diff options
context:
space:
mode:
authorGravatar Emanuele Stoppa <ematipico@users.noreply.github.com> 2024-05-22 08:17:53 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2024-05-22 08:17:53 +0000
commite1884ea6a87bee5242110bb171a1ba659c33da31 (patch)
tree8c5e536d781f7fab9f384bd0a30ab26df08bc9f5 /packages/db/test/integrations.test.js
parent05ef10cdc38878746c91e9032ccb57002ad66963 (diff)
downloadastro-e1884ea6a87bee5242110bb171a1ba659c33da31.tar.gz
astro-e1884ea6a87bee5242110bb171a1ba659c33da31.tar.zst
astro-e1884ea6a87bee5242110bb171a1ba659c33da31.zip
[ci] format
Diffstat (limited to 'packages/db/test/integrations.test.js')
-rw-r--r--packages/db/test/integrations.test.js44
1 files changed, 10 insertions, 34 deletions
diff --git a/packages/db/test/integrations.test.js b/packages/db/test/integrations.test.js
index d7a8a2d77..fb68d20f4 100644
--- a/packages/db/test/integrations.test.js
+++ b/packages/db/test/integrations.test.js
@@ -1,5 +1,5 @@
-import { describe, it, before, after } from "node:test";
-import assert from "node:assert/strict";
+import assert from 'node:assert/strict';
+import { after, before, describe, it } from 'node:test';
import { load as cheerioLoad } from 'cheerio';
import { loadFixture } from '../../astro/test/test-utils.js';
@@ -28,14 +28,8 @@ describe('astro:db with integrations', () => {
const $ = cheerioLoad(html);
const ul = $('.authors-list');
- assert.equal(
- ul.children().length,
- 5
- );
- assert.match(
- ul.children().eq(0).text(),
- /Ben/
- )
+ assert.equal(ul.children().length, 5);
+ assert.match(ul.children().eq(0).text(), /Ben/);
});
it('Prints the list of menu items from integration-defined table', async () => {
@@ -43,14 +37,8 @@ describe('astro:db with integrations', () => {
const $ = cheerioLoad(html);
const ul = $('ul.menu');
- assert.equal(
- ul.children().length,
- 4
- );
- assert.match(
- ul.children().eq(0).text(),
- /Pancakes/
- )
+ assert.equal(ul.children().length, 4);
+ assert.match(ul.children().eq(0).text(), /Pancakes/);
});
});
@@ -64,14 +52,8 @@ describe('astro:db with integrations', () => {
const $ = cheerioLoad(html);
const ul = $('.authors-list');
- assert.equal(
- ul.children().length,
- 5
- );
- assert.match(
- ul.children().eq(0).text(),
- /Ben/
- )
+ assert.equal(ul.children().length, 5);
+ assert.match(ul.children().eq(0).text(), /Ben/);
});
it('Prints the list of menu items from integration-defined table', async () => {
@@ -79,14 +61,8 @@ describe('astro:db with integrations', () => {
const $ = cheerioLoad(html);
const ul = $('ul.menu');
- assert.equal(
- ul.children().length,
- 4
- );
- assert.match(
- ul.children().eq(0).text(),
- /Pancakes/
- )
+ assert.equal(ul.children().length, 4);
+ assert.match(ul.children().eq(0).text(), /Pancakes/);
});
});
});