Skip to content

Commit 62d3df7

Browse files
jbl428imdudu1
andcommitted
feat: add fake function
Co-authored-by: imdudu1 <[email protected]>
1 parent 22cad16 commit 62d3df7

File tree

5 files changed

+23
-1
lines changed

5 files changed

+23
-1
lines changed

lib/http-interface.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type DynamicModule } from '@nestjs/common';
22
import { DiscoveryModule } from '@nestjs/core';
3-
import { NodeFetchInjector } from './node-fetch.injector';
3+
import { NodeFetchInjector } from './supports/node-fetch.injector';
44

55
export interface HttpInterfaceConfig {
66
timeout?: number;

lib/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export * from './decorators';
2+
export * from './supports';
23
export * from './http-interface.module';

lib/supports/imitation.spec.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { describe, test, expect } from 'vitest';
2+
import { imitation } from './imitation';
3+
4+
describe('imitation', () => {
5+
test('should throw error', () => {
6+
// given
7+
const args = [1, 2, 3];
8+
9+
// when
10+
const result = (): string => {
11+
return imitation(...args);
12+
};
13+
14+
// then
15+
expect(result).toThrowError('Not implemented');
16+
});
17+
});

lib/supports/imitation.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function imitation(...args: any[]): any {
2+
throw new Error('Not implemented');
3+
}

lib/supports/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './imitation';

0 commit comments

Comments
 (0)