Skip to content

Commit ea72ee2

Browse files
Update github actions variables
1 parent dab20e4 commit ea72ee2

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

Diff for: .github/workflows/build-test-deploy.yml

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
- name: Jest Tests
5555
env:
5656
CHINOOK_DATABASE_URL: ${{ secrets.CHINOOK_DATABASE_URL }}
57+
CHINOOK_API_KEY: ${{ secrets.CHINOOK_API_KEY }}
5758
GATEWAY_URL: ${{ secrets.GATEWAY_URL }}
5859
run: npm test
5960
- name: Upload Code Coverage

Diff for: test/compare.test.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,14 @@ describe('Database.run', () => {
133133
// https://github.com/TryGhost/node-sqlite3/wiki/API#runsql--param---callback
134134
function onInsert(error: Error, results: any) {
135135
expect(error).toBeNull()
136-
expect(results).toBeUndefined()
136+
137+
// same "insert results" as those in "context"
138+
expect(results).toEqual({
139+
lastID: 21,
140+
changes: 1,
141+
totalChanges: 21,
142+
finalized: 1
143+
})
137144

138145
// @ts-expect-error
139146
expect(this.lastID).toBe(21)

Diff for: test/database.test.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ describe('Database.run', () => {
5353
// lambda callback would "hide" this
5454
function plainCallbackNotALambdaOne(err: Error, results: any) {
5555
expect(err).toBeNull()
56-
expect(results).toBeUndefined()
56+
expect(results).toEqual({
57+
lastID: 21,
58+
changes: 1,
59+
totalChanges: 21,
60+
finalized: 1
61+
})
5762

5863
// Database.run should return number of rows modified and lastID
5964
// @ts-expect-error

0 commit comments

Comments
 (0)