Skip to content

Commit f08a4ef

Browse files
committed
Removed unnecessary types and fixed test description formatting
1 parent 0e2bb07 commit f08a4ef

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

tests/bin/typescript-demo-lib.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,23 @@ describe('main', () => {
7676
expect(tmpMockLog).toContain('7657 + 238947 = 246604\n');
7777
mockLog.mockRestore();
7878
});
79-
test('level should work.', async () => {
79+
test('level should work', async () => {
8080
const mockLog = mockProcessStdout();
8181
await main(['', '', '', '', dataDir]);
8282
const tmpMockLog = mockLog.mock.calls.join('');
8383
expect(tmpMockLog).toContain('lets test some levelDB');
8484
expect(tmpMockLog).toContain('hello Level!');
8585
mockLog.mockRestore();
8686
});
87-
test('Worker threads should work.', async () => {
87+
test('worker threads should work', async () => {
8888
const mockLog = mockProcessStdout();
8989
await main(['', '', '', '', dataDir]);
9090
const tmpMockLog = mockLog.mock.calls.join('');
9191
expect(tmpMockLog).toContain('Lets test workers.');
9292
expect(tmpMockLog).toContain('Hello Worker!');
9393
mockLog.mockRestore();
9494
});
95-
test('utp-native should work.', async () => {
95+
test('utp-native should work', async () => {
9696
const mockLog = mockProcessStdout();
9797
await main(['', '', '', '', dataDir]);
9898
const tmpMockLog = mockLog.mock.calls.join('');

tests/lib/Library.test.ts

-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
import Library from '@/lib/Library';
22
import { testUtility } from './utils';
33

4-
declare global {
5-
namespace NodeJS {
6-
interface Global {
7-
projectDir: string;
8-
testDir: string;
9-
}
10-
}
11-
}
12-
134
describe('Library class', () => {
145
let library: Library | null;
156

0 commit comments

Comments
 (0)