Skip to content

Commit

Permalink
Removed unnecessary types and fixed test description formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
CMCDragonkai committed May 10, 2022
1 parent 0e2bb07 commit f08a4ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
6 changes: 3 additions & 3 deletions tests/bin/typescript-demo-lib.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,23 @@ describe('main', () => {
expect(tmpMockLog).toContain('7657 + 238947 = 246604\n');
mockLog.mockRestore();
});
test('level should work.', async () => {
test('level should work', async () => {
const mockLog = mockProcessStdout();
await main(['', '', '', '', dataDir]);
const tmpMockLog = mockLog.mock.calls.join('');
expect(tmpMockLog).toContain('lets test some levelDB');
expect(tmpMockLog).toContain('hello Level!');
mockLog.mockRestore();
});
test('Worker threads should work.', async () => {
test('worker threads should work', async () => {
const mockLog = mockProcessStdout();
await main(['', '', '', '', dataDir]);
const tmpMockLog = mockLog.mock.calls.join('');
expect(tmpMockLog).toContain('Lets test workers.');
expect(tmpMockLog).toContain('Hello Worker!');
mockLog.mockRestore();
});
test('utp-native should work.', async () => {
test('utp-native should work', async () => {
const mockLog = mockProcessStdout();
await main(['', '', '', '', dataDir]);
const tmpMockLog = mockLog.mock.calls.join('');
Expand Down
9 changes: 0 additions & 9 deletions tests/lib/Library.test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
import Library from '@/lib/Library';
import { testUtility } from './utils';

declare global {
namespace NodeJS {
interface Global {
projectDir: string;
testDir: string;
}
}
}

describe('Library class', () => {
let library: Library | null;

Expand Down

0 comments on commit f08a4ef

Please sign in to comment.