The test fixture in test/reply.js is not correct because a valid etag looks like this:
server.inject({ url: '/', headers: { 'if-none-match': '"abc"' } })
Please note the quotes around abc. Particularly this is how the browsers send them. If you change this line to a correct etag the count will always be 2 and the test will fail.
The test fixture in test/reply.js is not correct because a valid etag looks like this:
Please note the quotes around abc. Particularly this is how the browsers send them. If you change this line to a correct etag the count will always be 2 and the test will fail.