Skip to content

Commit

Permalink
test(test/e2e/cli-test.coffee): Tweak CacheControl response header value
Browse files Browse the repository at this point in the history
Removed spaces between response directives. Additionally, corrected misspelled 'cacheing'.
  • Loading branch information
plroebuck committed Apr 9, 2018
1 parent cfa716a commit 5ab8fe7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/e2e/cli-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,8 @@ describe 'Command line interface', () ->
app.options '/machines', (req, res, next) ->
allow = ['OPTIONS', 'HEAD', 'GET']
res.setHeader 'Allow', allow.join ','
res.setHeader 'Cache-Control', 'no-cache, no-store, must-revalidate'
disableCache = ['no-cache', 'no-store', 'must-revalidate']
res.setHeader 'Cache-Control', disableCache.join ','
res.status(204).end()
next()

Expand Down Expand Up @@ -448,9 +449,9 @@ describe 'Command line interface', () ->
allow = optionsResponse.headers['Allow']
expect(allow).to.equal('OPTIONS,HEAD,GET')

it 'OPTIONS response should disable cacheing of it', () ->
it 'OPTIONS response should disable caching of it', () ->
cacheControl = optionsResponse.headers['Cache-Control']
expect(cacheControl).to.equal('no-cache, no-store, must-revalidate')
expect(cacheControl).to.equal('no-cache,no-store,must-revalidate')

it 'OPTIONS and HEAD responses should not have bodies', () ->
expect(optionsResponse.body).to.be.empty
Expand Down

0 comments on commit 5ab8fe7

Please sign in to comment.