add logger to del_request test

This commit is contained in:
Mark Cavage 2012-02-18 11:47:58 -08:00
parent 7ff50f43f4
commit 15c6e32801
2 changed files with 7 additions and 4 deletions

View File

@ -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 File

@ -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));