[Pkg-javascript-commits] [node-log-driver] 43/49: stop using should monkey-patch syntax.

Bastien Roucariès rouca at moszumanska.debian.org
Thu Feb 22 12:57:10 UTC 2018


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-log-driver.

commit bba1761737ca72f04d6b445629848538d038484a
Author: Gregg Caines <gregg at caines.ca>
Date:   Mon Feb 19 09:38:25 2018 -0800

    stop using should monkey-patch syntax.
---
 test/index.js | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/test/index.js b/test/index.js
index 776b426..edc9825 100644
--- a/test/index.js
+++ b/test/index.js
@@ -57,13 +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');
-
+    should.ok(lines[0].includes('[info]'));
+    should.ok(lines[1].includes('[warn]'));
+    should.ok(lines[2].includes('[error]'));
+    should.ok(lines[0].includes('info test'));
+    should.ok(lines[1].includes('warn test'));
+    should.ok(lines[2].includes('error test'));
   });
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-log-driver.git



More information about the Pkg-javascript-commits mailing list