Skip to content

Commit 71eeea8

Browse files
refactor(tests): create Debug instance per test in env-change-token-parser-test
Each test now creates its own Debug object instead of sharing a single instance across all tests. Co-authored-by: Arthur Schreiber <[email protected]>
1 parent e15c597 commit 71eeea8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/unit/token/env-change-token-parser-test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import WritableTrackingBuffer from '../../../src/tracking-buffer/writable-tracki
44
import Debug from '../../../src/debug';
55
import { assert } from 'chai';
66

7-
const debug = new Debug();
87
const options = { tdsVersion: '7_2', useUTC: false } as ParserOptions;
98

109
describe('Env Change Token Parser', () => {
1110
it('should write to database', async () => {
11+
const debug = new Debug();
1212
const oldDb = 'old';
1313
const newDb = 'new';
1414

@@ -35,6 +35,7 @@ describe('Env Change Token Parser', () => {
3535
});
3636

3737
it('should write with correct packet size', async () => {
38+
const debug = new Debug();
3839
const oldSize = '1024';
3940
const newSize = '2048';
4041

@@ -61,6 +62,7 @@ describe('Env Change Token Parser', () => {
6162
});
6263

6364
it('should be of bad type', async () => {
65+
const debug = new Debug();
6466
const buffer = new WritableTrackingBuffer(50, 'ucs2');
6567

6668
buffer.writeUInt8(0xe3);

0 commit comments

Comments
 (0)