11import "./sourceMapSupport" ;
22import { Mock } from "../mock" ;
3- import { Inject } from "../inject" ;
43import { Arg } from "../arg" ;
54import { Times } from "../times" ;
65import { recordError } from "./utils" ;
@@ -107,7 +106,7 @@ describe("mock", () => {
107106 // arrange
108107 const target = { a : 1 } ;
109108 const error = new Error ( "error" ) ;
110- const mock = new Mock ( target , { set a ( value : number ) { throw error ; } } ) ;
109+ const mock = new Mock ( target , { set a ( _ : number ) { throw error ; } } ) ;
111110
112111 // act
113112 const e = recordError ( ( ) => mock . proxy . a = 2 ) ;
@@ -218,7 +217,7 @@ describe("mock", () => {
218217 } ) ;
219218 it ( "function" , ( ) => {
220219 // arrange
221- const mock = new Mock < ( x : number ) => number > ( x => 0 ) ;
220+ const mock = new Mock < ( x : number ) => number > ( _ => 0 ) ;
222221 mock . setup ( _ => _ ( Arg . number ( ) ) , { return : 2 } ) ;
223222
224223 // act
@@ -248,7 +247,7 @@ describe("mock", () => {
248247 // arrange
249248 const target = { a : 1 } ;
250249 const mock = new Mock ( target ) ;
251- const result = mock . proxy . a ;
250+ mock . proxy . a ;
252251
253252 // act
254253 const e = recordError ( ( ) => mock . verify ( _ => _ . a , Times . once ( ) ) ) ;
@@ -298,7 +297,7 @@ describe("mock", () => {
298297 // arrange
299298 const target = { a ( ) { return 1 ; } } ;
300299 const mock = new Mock ( target ) ;
301- const result = mock . proxy . a ( ) ;
300+ mock . proxy . a ( ) ;
302301
303302 // act
304303 const e = recordError ( ( ) => mock . verify ( _ => _ . a ( ) , Times . once ( ) ) ) ;
@@ -321,7 +320,7 @@ describe("mock", () => {
321320 it ( "called passes" , ( ) => {
322321 // arrange
323322 const mock = Mock . function ( ) ;
324- const result = mock . proxy ( ) ;
323+ mock . proxy ( ) ;
325324
326325 // act
327326 const e = recordError ( ( ) => mock . verify ( _ => _ ( ) , Times . once ( ) ) ) ;
@@ -335,7 +334,7 @@ describe("mock", () => {
335334 // arrange
336335 const target = { a : 1 } ;
337336 const mock = new Mock ( target , { get a ( ) { return 2 } } ) ;
338- const result = mock . proxy . a ;
337+ mock . proxy . a ;
339338
340339 // act
341340 const e = recordError ( ( ) => mock . verify ( _ => _ . a , Times . once ( ) ) ) ;
@@ -351,7 +350,7 @@ describe("mock", () => {
351350 return x + 2 ;
352351 }
353352 } ) ;
354- const result = mock . proxy . a ( 3 ) ;
353+ mock . proxy . a ( 3 ) ;
355354
356355 // act
357356 const e = recordError ( ( ) => mock . verify ( _ => _ . a ( Arg . number ( ) ) , Times . once ( ) ) ) ;
0 commit comments