Skip to content

Accept-Encoding: "*" doesn't work in tests #6

@v1rtl

Description

@v1rtl
it.only('accepts a single compression algorithm', async () => {
  const request = superdeno(compression({ path: 'LICENSE', compression: ['br'] }))

  await request.get('/').set('Accept-Encoding', '*').expect('Content-Encoding', 'br')
})

this test fails because it cannot find Content-Encoding header for some reason:

error: Error: expected "Content-Encoding" header field
      return new Error(`expected "${field}" header field`);

I'm not sure if this is a superdeno bug or the lib bug, because if you run example with * it works as intended

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions