[Pkg-javascript-commits] [node-log-driver] 10/15: Fix test suite
Bastien Roucariès
rouca at moszumanska.debian.org
Wed Sep 6 09:49:10 UTC 2017
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 e4b7a157a7b4574a75a25a1ad895d4ca1ffa680c
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Thu Aug 24 22:35:33 2017 +0200
Fix test suite
Forwarded: yes
bug: https://github.com/cainus/logdriver/issues/7
---
test/index.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/test/index.js b/test/index.js
index 7b5f3de..d631144 100644
--- a/test/index.js
+++ b/test/index.js
@@ -59,12 +59,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