From 083a5c06dea9b07191e32d3a6ce3d71d63ea9bf7 Mon Sep 17 00:00:00 2001 From: Adrien Castex Date: Mon, 19 Jun 2017 15:24:30 +0200 Subject: [PATCH] Fixed ResourceTester error --- lib/resource/std/resourceTester/Content.js | 4 ++-- src/resource/std/resourceTester/Content.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/resource/std/resourceTester/Content.js b/lib/resource/std/resourceTester/Content.js index b9a004e7..fa3eb708 100644 --- a/lib/resource/std/resourceTester/Content.js +++ b/lib/resource/std/resourceTester/Content.js @@ -42,7 +42,7 @@ function writeRead(callback) { }); }); }); - }); + }, values.join('').length); }); } exports.writeRead = writeRead; @@ -81,7 +81,7 @@ function size(callback) { }); }); }); - }); + }, value.length); }); } exports.size = size; diff --git a/src/resource/std/resourceTester/Content.ts b/src/resource/std/resourceTester/Content.ts index a8c76cba..761f386d 100644 --- a/src/resource/std/resourceTester/Content.ts +++ b/src/resource/std/resourceTester/Content.ts @@ -51,7 +51,7 @@ export function writeRead(callback : ResourceTesterTestCallback) }) }) }); - }) + }, values.join('').length) }) } export function mimeType(callback : ResourceTesterTestCallback) @@ -93,6 +93,6 @@ export function size(callback : ResourceTesterTestCallback) }) }) }); - }) + }, value.length) }) }