From 15c6e328015ba602db4ad3454b7e9485af7c4e26 Mon Sep 17 00:00:00 2001 From: Mark Cavage Date: Sat, 18 Feb 2012 11:47:58 -0800 Subject: [PATCH] add logger to del_request test --- Makefile | 4 ++-- test/messages/del_request.test.js | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index f9f3ee4..cf675ca 100644 --- a/Makefile +++ b/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 diff --git a/test/messages/del_request.test.js b/test/messages/del_request.test.js index ce55534..9b7d527 100644 --- a/test/messages/del_request.test.js +++ b/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));