Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
shiyuhang0 committed Jan 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 1ac9717 commit 0307f1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration-test/type.test.ts
Original file line number Diff line number Diff line change
@@ -148,16 +148,17 @@ beforeAll(async () => {
describe('types', () => {

test('test null', async () => {
console.log(databaseURL)
const con = connect({url: databaseURL, database: database, fetch})
await con.execute(`delete from ${table}`)
await con.execute('insert into multi_data_type values ()')
const r = await con.execute('select * from multi_data_type',null, {fullResult: true}) as FullResult
console.log(r)
expect(r.rows.length).toEqual(1)
expect(JSON.stringify(r.rows[0])).toEqual(JSON.stringify(nullResult))
})

test('test all types', async () => {
console.log(databaseURL)
const con = connect({url: databaseURL, database: database, fetch})
await con.execute(`delete from ${table}`)
const x = await con.execute(insertSQL,null, {fullResult: true})

0 comments on commit 0307f1f

Please sign in to comment.