Skip to content

Commit

Permalink
Fix: fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovitDmytro committed Jun 20, 2023
1 parent 30132ba commit b4545ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/* eslint-disable promise/prefer-await-to-callbacks */
import Transport from 'winston-transport';
import { MESSAGE, LEVEL } from './constants';

export default class VSCTransport extends Transport {
constructor(options = {}) {
constructor(options) {
super(options);

this.name = options.name || this.constructor.name;
Expand Down
1 change: 1 addition & 0 deletions tests/package/configurations.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ test('Default configuration', function () {
const logger = createLogger({
level : 'debug',
transports : [ new transport({
name : 'ABC',
window : new MockWindow(array)
}) ]
});
Expand Down

0 comments on commit b4545ec

Please sign in to comment.