Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
b181772
commit 4aeeee0
Showing
3 changed files
with
153 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { mockedA } from './mockedA' | ||
|
||
export class MockedC { | ||
public value: number | ||
|
||
constructor() { | ||
this.value = 42 | ||
} | ||
|
||
public doSomething() { | ||
return mockedA() | ||
} | ||
|
||
get getSetProp(): number { | ||
return 123 | ||
} | ||
|
||
set getSetProp(_val: number) {} | ||
} | ||
|
||
export async function asyncFunc(): Promise<string> { | ||
await new Promise<void>(resolve => resolve()) | ||
return '1234' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters