From 3919441bbcffe7c195869993db97a37e87731ff0 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Wed, 3 Feb 2016 17:46:31 +0700 Subject: [PATCH] Fix unit test using strict mode for random.js --- test/worker/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/worker/api.js b/test/worker/api.js index 18881393..c63a2760 100644 --- a/test/worker/api.js +++ b/test/worker/api.js @@ -564,8 +564,8 @@ describe('Random Buffer', function() { }); it('Throw error if not initialized', function () { - expect(randomBuffer.set).to.throw('RandomBuffer is not initialized'); - expect(randomBuffer.get).to.throw('RandomBuffer is not initialized'); + expect(randomBuffer.set.bind(randomBuffer)).to.throw('RandomBuffer is not initialized'); + expect(randomBuffer.get.bind(randomBuffer)).to.throw('RandomBuffer is not initialized'); }); it('Initialization', function () {