Skip to content

Commit

Permalink
build: remove unnecessary dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Sep 5, 2023
1 parent 6245dbc commit 13cecd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@
"@keyvhq/core": "~2.0.0",
"@keyvhq/memoize": "~2.0.3",
"compress-brotli": "~1.3.9",
"etag": "~1.8.1",
"pretty-ms": "~7.0.1"
"etag": "~1.8.1"
},
"devDependencies": {
"@commitlint/cli": "latest",
Expand All @@ -73,7 +72,6 @@
"c8": "latest",
"ci-publish": "latest",
"conventional-github-releaser": "latest",
"delay": "latest",
"finepack": "latest",
"git-authors-cli": "latest",
"got": "11",
Expand Down
4 changes: 2 additions & 2 deletions test/status.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const { setTimeout } = require('timers/promises')
const Keyv = require('@keyvhq/core')
const delay = require('delay')
const test = require('ava')
const got = require('got')

Expand Down Expand Up @@ -119,7 +119,7 @@ test('STALE when response is stale', async t => {
})
)
t.is((await got(`${url}/kikobeats`)).headers['x-cache-status'], 'MISS')
await delay(20)
await setTimeout(20)
t.is((await got(`${url}/kikobeats`)).headers['x-cache-status'], 'STALE')
t.is((await got(`${url}/kikobeats`)).headers['x-cache-status'], 'HIT')
})
Expand Down

0 comments on commit 13cecd1

Please sign in to comment.