Skip to content
Browse files

add logger to del_request test

  • Loading branch information...
1 parent 7ff50f4 commit 15c6e328015ba602db4ad3454b7e9485af7c4e26 @mcavage committed Feb 18, 2012
Showing with 7 additions and 4 deletions.
  1. +2 −2 Makefile
  2. +5 −2 test/messages/del_request.test.js
View
4 Makefile
@@ -42,8 +42,8 @@ all:
$(NPM) install
.PHONY: test
-test: $(TAP)
- $(TAP) test/*.test.js
+test:
+ $(NPM) test
include ./Makefile.deps
include ./Makefile.targ
View
7 test/messages/del_request.test.js
@@ -1,8 +1,9 @@
// Copyright 2011 Mark Cavage, Inc. All rights reserved.
-var test = require('tap').test;
var asn1 = require('asn1');
+var Logger = require('bunyan');
+var test = require('tap').test;
///--- Globals
@@ -43,7 +44,9 @@ test('parse', function (t) {
var ber = new BerWriter();
ber.writeString('cn=test', 0x4a);
- var req = new DeleteRequest();
+ var req = new DeleteRequest({
+ log: new Logger({name: 'del_request.test.js'})
+ });
var reader = new BerReader(ber.buffer);
reader.readSequence(0x4a);
t.ok(req.parse(reader, reader.length));

0 comments on commit 15c6e32

Please sign in to comment.
Something went wrong with that request. Please try again.