Blob Blame History Raw
diff --git a/test/index.js b/test/index.js
index 776b426..f7702d2 100644
--- a/test/index.js
+++ b/test/index.js
@@ -57,12 +57,12 @@ describe("logdriver", function(){
     mylogger.error("error test"); 
     mylogger.trace("trace test"); 
     var lines = logged.split("\n");
-    lines[0].should.include('[info]');
-    lines[1].should.include('[warn]');
-    lines[2].should.include('[error]');
-    lines[0].should.include('info test');
-    lines[1].should.include('warn test');
-    lines[2].should.include('error test');
+    lines[0].should.match(/\[info\]/);
+    lines[1].should.match(/\[warn\]/);
+    lines[2].should.match(/\[error\]/);
+    lines[0].should.match(/info test/);
+    lines[1].should.match(/warn test/);
+    lines[2].should.match(/error test/);
 
   });