Skip to content

Commit

Permalink
tests: add weak Unicode string test
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Oct 14, 2014
1 parent 33b3c92 commit f667d66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe('etag(entity)', function () {

it('should work containing Unicode', function () {
assert.equal(etag('论'), '"aW9HeLTk2Yt6lf7zJYElgw=="')
assert.equal(etag('论', {weak: true}), 'W/"3-438093ff"')
})

it('should work for empty string', function () {
Expand Down

0 comments on commit f667d66

Please sign in to comment.