Skip to content

Commit 20d25cd

Browse files
committed
syntax error and prettier
1 parent 11ce097 commit 20d25cd

File tree

7 files changed

+70
-70
lines changed

7 files changed

+70
-70
lines changed

docs/Es6ClassMocks.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -290,20 +290,20 @@ import SoundPlayerConsumer from './sound-player-consumer';
290290

291291
const staticMethodMock = jest
292292
.spyOn(SoundPlayer, 'brand')
293-
.mockImplementation(()=>"some-mocked-brand)
293+
.mockImplementation(() => 'some-mocked-brand');
294294

295295
const 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)

website/versioned_docs/version-25.x/Es6ClassMocks.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -290,20 +290,20 @@ import SoundPlayerConsumer from './sound-player-consumer';
290290

291291
const staticMethodMock = jest
292292
.spyOn(SoundPlayer, 'brand')
293-
.mockImplementation(()=>"some-mocked-brand)
293+
.mockImplementation(() => 'some-mocked-brand');
294294

295295
const 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)

website/versioned_docs/version-26.x/Es6ClassMocks.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -290,20 +290,20 @@ import SoundPlayerConsumer from './sound-player-consumer';
290290

291291
const staticMethodMock = jest
292292
.spyOn(SoundPlayer, 'brand')
293-
.mockImplementation(()=>"some-mocked-brand)
293+
.mockImplementation(() => 'some-mocked-brand');
294294

295295
const 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)

website/versioned_docs/version-27.0/Es6ClassMocks.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -290,20 +290,20 @@ import SoundPlayerConsumer from './sound-player-consumer';
290290

291291
const staticMethodMock = jest
292292
.spyOn(SoundPlayer, 'brand')
293-
.mockImplementation(()=>"some-mocked-brand)
293+
.mockImplementation(() => 'some-mocked-brand');
294294

295295
const 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)

website/versioned_docs/version-27.1/Es6ClassMocks.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -290,20 +290,20 @@ import SoundPlayerConsumer from './sound-player-consumer';
290290

291291
const staticMethodMock = jest
292292
.spyOn(SoundPlayer, 'brand')
293-
.mockImplementation(()=>"some-mocked-brand)
293+
.mockImplementation(() => 'some-mocked-brand');
294294

295295
const 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)

website/versioned_docs/version-27.2/Es6ClassMocks.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -290,20 +290,20 @@ import SoundPlayerConsumer from './sound-player-consumer';
290290

291291
const staticMethodMock = jest
292292
.spyOn(SoundPlayer, 'brand')
293-
.mockImplementation(()=>"some-mocked-brand)
293+
.mockImplementation(() => 'some-mocked-brand');
294294

295295
const 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)

website/versioned_docs/version-27.4/Es6ClassMocks.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -290,20 +290,20 @@ import SoundPlayerConsumer from './sound-player-consumer';
290290

291291
const staticMethodMock = jest
292292
.spyOn(SoundPlayer, 'brand')
293-
.mockImplementation(()=>"some-mocked-brand)
293+
.mockImplementation(() => 'some-mocked-brand');
294294

295295
const 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

Comments
 (0)