Skip to content

Instantly share code, notes, and snippets.

@Markus-Ende
Last active August 31, 2018 09:28

Revisions

  1. Markus-Ende revised this gist Aug 31, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ts-mockito-simple-example-1.ts
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    const mockService: MyService = mock(MyService);
    when(mockService.someFunction()).thenReturn('some value');
    const mockInstance: MyService = instance(mockService);
    const mockServiceInstance: MyService = instance(mockService);
  2. Markus-Ende created this gist Aug 31, 2018.
    3 changes: 3 additions & 0 deletions ts-mockito-simple-example-1.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    const mockService: MyService = mock(MyService);
    when(mockService.someFunction()).thenReturn('some value');
    const mockInstance: MyService = instance(mockService);