Skip to content

Commit c5fb315

Browse files
committed
formatting
1 parent 1dbd7d5 commit c5fb315

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

build.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
// this will inline wasm bytes and wrap with wasm_exec.js
1+
// this will inline wasm bytes and wrap with wasm_exec.js
22

33
import { readFile, writeFile } from 'node:fs/promises'
44

55
const buf = await readFile('./go/sqldef.wasm')
66

7-
await writeFile('index.js', `import './go/wasm_exec.js'
7+
await writeFile(
8+
'index.js',
9+
`import './go/wasm_exec.js'
810
const buf = new Uint8Array([${[...buf].join(',')}])
911
const go = new Go()
1012
@@ -21,4 +23,5 @@ export default async (t,s1,s2) => {
2123
}
2224
return result
2325
}
24-
`)
26+
`
27+
)

sqldef.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ test('should be able to diff some mssql', async ({ assert }) => {
3737
})
3838

3939
test('should be able to diff some sqlite', async ({ assert }) => {
40-
const sql1 = `
40+
const sql1 = `
4141
CREATE TABLE IF NOT EXISTS user (
4242
id INT PRIMARY KEY
4343
);
@@ -54,7 +54,7 @@ test('should be able to diff some sqlite', async ({ assert }) => {
5454
})
5555

5656
test('should be able to diff some postgres', async ({ assert }) => {
57-
const sql1 = `
57+
const sql1 = `
5858
CREATE TABLE IF NOT EXISTS user (
5959
id INT PRIMARY KEY
6060
);
@@ -71,17 +71,17 @@ test('should be able to diff some postgres', async ({ assert }) => {
7171
assert.snapshot(r)
7272
})
7373

74-
test('should throw on bad SQL', async ({assert}) => {
74+
test('should throw on bad SQL', async ({ assert }) => {
7575
try {
7676
await sqldef('mysql', 'BAD STUFF', 'NOT SQL, SORRRY')
7777
assert.equal(true, 'Should have thrown')
78-
} catch(e) {
78+
} catch (e) {
7979
assert.snapshot(e.message)
8080
}
8181
})
8282

8383
test('should throw on bad type', async ({ assert }) => {
84-
const sql1 = `
84+
const sql1 = `
8585
CREATE TABLE IF NOT EXISTS user (
8686
id INT PRIMARY KEY
8787
);
@@ -96,7 +96,7 @@ test('should throw on bad type', async ({ assert }) => {
9696
try {
9797
await sqldef('sqlite', sql1, sql2)
9898
assert.equal(true, 'Should have thrown')
99-
} catch(e) {
99+
} catch (e) {
100100
assert.snapshot(e.message)
101101
}
102-
})
102+
})

0 commit comments

Comments
 (0)