Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

build(deps-dev): replace standard with neostandard #176

Merged
merged 2 commits into from
Dec 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: remove unused variable assignment
  • Loading branch information
Fdawgs committed Dec 4, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 970349fdebad1a8aea60cd7f88bef152bb3c2d15
36 changes: 20 additions & 16 deletions types/index.test-d.ts
Original file line number Diff line number Diff line change
@@ -8,25 +8,29 @@ app.register(accepts)
app.get('/', (request, reply) => {
const accept = request.accepts()

const charsets = accept.charsets()
const charsetFromEmpty = accept.charset()
const charsetFromParams = accept.charset('json', 'text')
const charsetFromArray = accept.charset(['json', 'text'])
// Charsets
accept.charsets()
accept.charset()
accept.charset('json', 'text')
accept.charset(['json', 'text'])

const encodings = accept.encodings()
const encodingFromEmpty = accept.encoding()
const encodingFromParams = accept.encoding('json', 'text')
const encodingFromArray = accept.encoding(['json', 'text'])
// Encoding
accept.encodings()
accept.encoding()
accept.encoding('json', 'text')
accept.encoding(['json', 'text'])

const languages = accept.languages()
const languageFromEmpty = accept.language()
const languageFromParams = accept.language('json', 'text')
const languageFromArray = accept.language(['json', 'text'])
// Languages
accept.languages()
accept.language()
accept.language('json', 'text')
accept.language(['json', 'text'])

const types = accept.types()
const typeFromEmpty = accept.type()
const typeFromParams = accept.type('json', 'text')
const typeFromArray = accept.type(['json', 'text'])
// Types
accept.types()
accept.type()
accept.type('json', 'text')
accept.type(['json', 'text'])

request.charset()
request.charsets()
Loading