Skip to content

Commit 88d58eb

Browse files
committed
chore(connect): ts error in tests and formatting
1 parent a8603b8 commit 88d58eb

File tree

7 files changed

+15
-3
lines changed

7 files changed

+15
-3
lines changed

packages/connect/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"tasks": {
33
"cache": "deno cache --lock=deno.lock --lock-write deno/deps.deno.ts deno/dev_deps.ts",
4-
"test": "deno lint && deno fmt && deno test -A --no-lock --unstable deno/tests",
4+
"test": "deno lint && deno fmt && deno test -A --no-lock deno/tests",
55
"test:integration": "make test-integration",
66
"to-node": "make clean to-node"
77
},

packages/connect/deno/tests/cache.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ test('cache.destroy', async () => {
9999

100100
const noConfirmRequest = (_h: HyperRequest) => {
101101
assert(false, 'unreachable')
102+
return Promise.resolve(
103+
new Request('http://localhost', { method: 'DELETE' }),
104+
)
102105
}
103106

104107
await destroy()(noConfirmRequest).catch(assert)

packages/connect/deno/tests/data.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ test('data.destroy', async () => {
157157

158158
const noConfirmRequest = (_h: HyperRequest) => {
159159
assert(false, 'unreachable')
160+
return Promise.resolve(
161+
new Request('http://localhost', { method: 'DELETE' }),
162+
)
160163
}
161164

162165
await destroy()(noConfirmRequest).catch(assert)

packages/connect/deno/tests/hyper-verify.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Deno.test('Verify: Compare Secret Signatures Successfully', () => {
1818
assertEquals(result.ok, true)
1919
})
2020

21-
Deno.test('Verify: Compare Signatures that don\'t match ', () => {
21+
Deno.test("Verify: Compare Signatures that don't match ", () => {
2222
const time = new Date()
2323
const s = hmac(
2424
'sha256',

packages/connect/deno/tests/search.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ test('search.destroy', async () => {
130130

131131
const noConfirmRequest = (_h: HyperRequest) => {
132132
assert(false, 'unreachable')
133+
return Promise.resolve(
134+
new Request('http://localhost', { method: 'DELETE' }),
135+
)
133136
}
134137

135138
await destroy()(noConfirmRequest).catch(assert)

packages/connect/deno/tests/storage.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ test('storage.destroy', async () => {
123123

124124
const noConfirmRequest = (_h: HyperRequest) => {
125125
assert(false, 'unreachable')
126+
return Promise.resolve(
127+
new Request('http://localhost', { method: 'DELETE' }),
128+
)
126129
}
127130

128131
await destroy()(noConfirmRequest).catch(assert)

packages/connect/node/tests/hyper-verify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test('Verify: Compare Secret Signatures Successfully', () => {
1919
assert.equal(result.ok, true)
2020
})
2121

22-
test('Verify: Compare Signatures that don\'t match ', () => {
22+
test("Verify: Compare Signatures that don't match ", () => {
2323
const time = new Date()
2424
const s = hmac(
2525
'sha256',

0 commit comments

Comments
 (0)