From f667d662aebc7ac03932278ba9c6694231880863 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Mon, 13 Oct 2014 23:26:33 -0400 Subject: [PATCH] tests: add weak Unicode string test --- test/test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test.js b/test/test.js index 0708117..603a547 100644 --- a/test/test.js +++ b/test/test.js @@ -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 () {