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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 0 additions & 9 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy