[Pkg-javascript-commits] [node-log-driver] 13/49: adding first test of default logger.
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Feb 22 12:57:01 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 9a761782530ac832b2f176a44931b7b5fae4b9db
Author: cainus <gregg at caines.ca>
Date: Mon Mar 25 14:42:02 2013 -0700
adding first test of default logger.
---
test/index.js | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/test/index.js b/test/index.js
new file mode 100644
index 0000000..2293c62
--- /dev/null
+++ b/test/index.js
@@ -0,0 +1,13 @@
+var should = require('should');
+var logger = require('../index');
+
+describe("logdriver", function(){
+ it ("creates a new instance of logger with default levels", function(){
+ should.exist(logger.error);
+ should.exist(logger.warn);
+ should.exist(logger.info);
+ should.exist(logger.debug);
+ should.exist(logger.trace);
+ logger.level.should.equal('trace');
+ });
+});
--
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