@@ -290,20 +290,20 @@ import SoundPlayerConsumer from './sound-player-consumer';
290290
291291const staticMethodMock = jest
292292 .spyOn (SoundPlayer, ' brand' )
293- .mockImplementation (()=> " some-mocked-brand)
293+ .mockImplementation (() => ' some-mocked-brand' );
294294
295295const getterMethodMock = jest
296- .spyOn(SoundPlayer.prototype, 'foo','get')
297- .mockImplementation(()=> " some- mocked- result" )
296+ .spyOn (SoundPlayer .prototype , ' foo' , ' get' )
297+ .mockImplementation (() => ' some-mocked-result' );
298298
299- it(" custom methods are called" , ()=> {
300- const player = new SoundPlayer()
301- const foo = player.foo
302- const brand = SoundPlayer.brand()
299+ it (' custom methods are called' , () => {
300+ const player = new SoundPlayer ();
301+ const foo = player .foo ;
302+ const brand = SoundPlayer .brand ();
303303
304- expect(staticMethodMock).toHaveBeenCalled()
305- expect(getterMethodMock).toHaveBeenCalled()
306- })
304+ expect (staticMethodMock).toHaveBeenCalled ();
305+ expect (getterMethodMock).toHaveBeenCalled ();
306+ });
307307```
308308
309309## Keeping track of usage (spying on the mock)
0 commit comments