Skip to content

Commit

Permalink
Update JestObjectAPI.md [play method accessed as property due to its …
Browse files Browse the repository at this point in the history
…getter definition]
  • Loading branch information
faizanu94 committed Nov 29, 2023
1 parent 01a923b commit fb0f1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/versioned_docs/version-29.7/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ afterEach(() => {

test('plays video', () => {
const spy = jest.spyOn(video, 'play', 'get'); // we pass 'get'
const isPlaying = video.play();
const isPlaying = video.play;

expect(spy).toHaveBeenCalled();
expect(isPlaying).toBe(true);
Expand Down

0 comments on commit fb0f1cf

Please sign in to comment.