Skip to content

Commit 8deaf0b

Browse files
committedJan 2, 2022
remove unnecessary unit tests
this is added by the winston logger and should not be tested as part of the transport
1 parent 76cf594 commit 8deaf0b

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed
 

‎test/transport-tests.js

-23
Original file line numberDiff line numberDiff line change
@@ -68,29 +68,6 @@ describe('winston/transports/daily-rotate-file', function () {
6868
});
6969
});
7070

71-
describe('when passed metadata', function () {
72-
var circular = {};
73-
circular.metadata = circular;
74-
75-
var params = {
76-
no: {},
77-
object: {metadata: true},
78-
primitive: 'metadata',
79-
circular: circular
80-
};
81-
82-
Object.keys(params).forEach(function (param) {
83-
it('should accept log messages with ' + param + ' metadata', function (done) {
84-
sendLogItem(this.transport, 'info', 'test log message', params[param], function (err, logged) {
85-
expect(err).to.be.null;
86-
expect(logged).to.be.true;
87-
// TODO parse the metadata value to make sure its set properly
88-
done();
89-
});
90-
});
91-
});
92-
});
93-
9471
describe('when using a filename or dirname', function () {
9572
var logDir = path.join(__dirname, 'logs');
9673
var now = moment().utc().format('YYYY-MM-DD-HH');

0 commit comments

Comments
 (0)
Please sign in to comment.