Skip to content

Commit

Permalink
chore(connect): ts error in tests and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Jan 26, 2024
1 parent a8603b8 commit 88d58eb
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/connect/deno.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"tasks": {
"cache": "deno cache --lock=deno.lock --lock-write deno/deps.deno.ts deno/dev_deps.ts",
"test": "deno lint && deno fmt && deno test -A --no-lock --unstable deno/tests",
"test": "deno lint && deno fmt && deno test -A --no-lock deno/tests",
"test:integration": "make test-integration",
"to-node": "make clean to-node"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/connect/deno/tests/cache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ test('cache.destroy', async () => {

const noConfirmRequest = (_h: HyperRequest) => {
assert(false, 'unreachable')
return Promise.resolve(
new Request('http://localhost', { method: 'DELETE' }),
)
}

await destroy()(noConfirmRequest).catch(assert)
Expand Down
3 changes: 3 additions & 0 deletions packages/connect/deno/tests/data.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ test('data.destroy', async () => {

const noConfirmRequest = (_h: HyperRequest) => {
assert(false, 'unreachable')
return Promise.resolve(
new Request('http://localhost', { method: 'DELETE' }),
)
}

await destroy()(noConfirmRequest).catch(assert)
Expand Down
2 changes: 1 addition & 1 deletion packages/connect/deno/tests/hyper-verify.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Deno.test('Verify: Compare Secret Signatures Successfully', () => {
assertEquals(result.ok, true)
})

Deno.test('Verify: Compare Signatures that don\'t match ', () => {
Deno.test("Verify: Compare Signatures that don't match ", () => {
const time = new Date()
const s = hmac(
'sha256',
Expand Down
3 changes: 3 additions & 0 deletions packages/connect/deno/tests/search.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ test('search.destroy', async () => {

const noConfirmRequest = (_h: HyperRequest) => {
assert(false, 'unreachable')
return Promise.resolve(
new Request('http://localhost', { method: 'DELETE' }),
)
}

await destroy()(noConfirmRequest).catch(assert)
Expand Down
3 changes: 3 additions & 0 deletions packages/connect/deno/tests/storage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ test('storage.destroy', async () => {

const noConfirmRequest = (_h: HyperRequest) => {
assert(false, 'unreachable')
return Promise.resolve(
new Request('http://localhost', { method: 'DELETE' }),
)
}

await destroy()(noConfirmRequest).catch(assert)
Expand Down
2 changes: 1 addition & 1 deletion packages/connect/node/tests/hyper-verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test('Verify: Compare Secret Signatures Successfully', () => {
assert.equal(result.ok, true)
})

test('Verify: Compare Signatures that don\'t match ', () => {
test("Verify: Compare Signatures that don't match ", () => {
const time = new Date()
const s = hmac(
'sha256',
Expand Down

0 comments on commit 88d58eb

Please sign in to comment.