Permalink
Browse files

Add test with umlaut content

  • Loading branch information...
1 parent 8deb764 commit 243da327ab5d1994d0bcffe975a483733d53771d @pfleidi committed May 10, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/wwwdude-contentdelivery.js
View
4 test/wwwdude-contentdelivery.js
@@ -25,7 +25,7 @@ function _assertWithPayload(beforeExit, verb, payload) {
assert.strictEqual(data.method, upCase);
assert.strictEqual(data.url, '/foo');
assert.strictEqual(data.headers['user-agent'], 'node-wwwdude');
- assert.equal(data.headers['content-length'], payload.length);
+ assert.equal(data.headers['content-length'], Buffer.byteLength(payload));
assert.strictEqual(data.payload, payload);
})
.on('complete', function (data, resp) {
@@ -43,5 +43,5 @@ exports.assertPayloadPut = function (beforeExit) {
};
exports.assertPayloadPost = function (beforeExit) {
- _assertWithPayload(beforeExit, 'post', '2342HurrDurrDerp!');
+ _assertWithPayload(beforeExit, 'post', '2342HurrDurrDerp!äääää');
};

0 comments on commit 243da32

Please sign in to comment.