Skip to content

Commit c8766bb

Browse files
authored
Update JestObjectAPI.md
1 parent aaa1efd commit c8766bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/JestObjectAPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ afterEach(() => {
753753

754754
test('plays video', () => {
755755
const spy = jest.spyOn(video, 'play', 'get'); // we pass 'get'
756-
const isPlaying = video.play();
756+
const isPlaying = video.play;
757757

758758
expect(spy).toHaveBeenCalled();
759759
expect(isPlaying).toBe(true);

0 commit comments

Comments
 (0)