Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyuhang0 committed Jan 5, 2024
1 parent 0307f1f commit 47d93fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ jobs:
${{ runner.os }}-node-
- run: |
npm ci
npm install
export DATABASE_URL=${{ secrets.DATABASE_URL }}
npm run integrationTest
10 changes: 3 additions & 7 deletions integration-test/type.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,8 @@ describe('types', () => {
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})
console.log(x)
// const rows = await con.execute('select * from multi_data_type') as Row[]
const rows = await con.execute('select * from multi_data_type',null, {fullResult: true})
console.log(rows)
// expect(rows.length).toEqual(1)
// expect(JSON.stringify(rows[0])).toEqual(JSON.stringify(fullTypeResult))
const rows = await con.execute('select * from multi_data_type') as Row[]
expect(rows.length).toEqual(1)
expect(JSON.stringify(rows[0])).toEqual(JSON.stringify(fullTypeResult))
})
})
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 47d93fd

Please sign in to comment.