From 01a83591a3ea031156deaddf180583e36e7b5160 Mon Sep 17 00:00:00 2001 From: Gavin Chen <421865892@qq.com> Date: Sat, 27 Jan 2018 15:07:59 +0800 Subject: [PATCH] Update Es6ClassMocks.md --- docs/Es6ClassMocks.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Es6ClassMocks.md b/docs/Es6ClassMocks.md index 89b1ac4aa183..8c3c62f3ba28 100644 --- a/docs/Es6ClassMocks.md +++ b/docs/Es6ClassMocks.md @@ -101,6 +101,7 @@ Import the mock and the mock method shared by all instances: ```javascript // sound-player-consumer.test.js import SoundPlayer, { mockPlaySoundFile } from './sound-player'; +import SoundPlayerConsumer from './sound-player-consumer'; jest.mock('./sound-player'); // SoundPlayer is now a mock constructor beforeEach(() => {