chore: make tests work

This commit is contained in:
Rodney, Tiara 2025-04-25 19:19:40 +02:00
parent e4e21d4016
commit c4a98da88e
No known key found for this signature in database
GPG key ID: 5CD8EC1D46106723
6 changed files with 70 additions and 11 deletions

View file

@ -10,7 +10,9 @@ describe('getLevelName', () => {
var logging: any;
beforeEach(() => {
logging = require('../src/logging');
// there are a couple of singletons, which I'm not yet sure if they need
// to be reloaded for every test case
logging = require('../src');
});
it('numeric to textual representation of built-ins', () => {
@ -73,7 +75,7 @@ describe('addLevelName', () => {
var logging: any;
beforeEach(() => {
logging = require('../src/logging');
logging = require('../src');
});
it('numeric to textual representation of built-ins', () => {