diff options
author | 2024-05-22 08:17:53 +0000 | |
---|---|---|
committer | 2024-05-22 08:17:53 +0000 | |
commit | e1884ea6a87bee5242110bb171a1ba659c33da31 (patch) | |
tree | 8c5e536d781f7fab9f384bd0a30ab26df08bc9f5 /packages/db/test/error-handling.test.js | |
parent | 05ef10cdc38878746c91e9032ccb57002ad66963 (diff) | |
download | astro-e1884ea6a87bee5242110bb171a1ba659c33da31.tar.gz astro-e1884ea6a87bee5242110bb171a1ba659c33da31.tar.zst astro-e1884ea6a87bee5242110bb171a1ba659c33da31.zip |
[ci] format
Diffstat (limited to 'packages/db/test/error-handling.test.js')
-rw-r--r-- | packages/db/test/error-handling.test.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/db/test/error-handling.test.js b/packages/db/test/error-handling.test.js index 01b701346..5ca9ce5c2 100644 --- a/packages/db/test/error-handling.test.js +++ b/packages/db/test/error-handling.test.js @@ -1,7 +1,7 @@ -import { describe, it, before, after } from "node:test"; +import assert from 'node:assert/strict'; +import { after, before, describe, it } from 'node:test'; import { loadFixture } from '../../astro/test/test-utils.js'; import { setupRemoteDbServer } from './test-utils.js'; -import assert from "node:assert/strict" const foreignKeyConstraintError = 'LibsqlError: SQLITE_CONSTRAINT_FOREIGNKEY: FOREIGN KEY constraint failed'; @@ -30,7 +30,7 @@ describe('astro:db - error handling', () => { assert.deepEqual(json, { message: foreignKeyConstraintError, code: 'SQLITE_CONSTRAINT_FOREIGNKEY', - }) + }); }); }); @@ -51,7 +51,7 @@ describe('astro:db - error handling', () => { assert.deepEqual(JSON.parse(json), { message: foreignKeyConstraintError, code: 'SQLITE_CONSTRAINT_FOREIGNKEY', - }) + }); }); }); }); |