From 33146b15e05dbe1ec71f065a5bac766fb4685236 Mon Sep 17 00:00:00 2001 From: Peter Braden Date: Mon, 19 Nov 2012 12:39:49 -0800 Subject: [PATCH] stubbing test for multiple imports bug --- test/unit.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/unit.js b/test/unit.js index e03869d..60cfbcf 100755 --- a/test/unit.js +++ b/test/unit.js @@ -29,6 +29,13 @@ vows.describe('Smoke Tests OpenCV').addBatch({ , '.Matrix imports': function(topic){ assert.ok(!!topic.Matrix) } + + , 'importing library multiple times is ok' : function(){ + var cv1 = require('../lib/opencv') + , cv2 = require('../lib/opencv') + cv1.readImage('./examples/mona.png', function(){}); + cv2.readImage('./examples/mona.png', function(){}); + } } , "Point" : {