Skip to content

Commit

Permalink
Fix: typo video.play from spyOn #JestObjectAPI.md (#13747)
Browse files Browse the repository at this point in the history
  • Loading branch information
arash-hacker committed Jan 10, 2023
1 parent c62bd79 commit ee63afc
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/JestObjectAPI.md
Expand Up @@ -747,7 +747,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
2 changes: 1 addition & 1 deletion website/versioned_docs/version-25.x/JestObjectAPI.md
Expand Up @@ -557,7 +557,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
2 changes: 1 addition & 1 deletion website/versioned_docs/version-26.x/JestObjectAPI.md
Expand Up @@ -561,7 +561,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
2 changes: 1 addition & 1 deletion website/versioned_docs/version-27.x/JestObjectAPI.md
Expand Up @@ -561,7 +561,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
2 changes: 1 addition & 1 deletion website/versioned_docs/version-28.x/JestObjectAPI.md
Expand Up @@ -567,7 +567,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
2 changes: 1 addition & 1 deletion website/versioned_docs/version-29.0/JestObjectAPI.md
Expand Up @@ -611,7 +611,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
2 changes: 1 addition & 1 deletion website/versioned_docs/version-29.1/JestObjectAPI.md
Expand Up @@ -684,7 +684,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
2 changes: 1 addition & 1 deletion website/versioned_docs/version-29.2/JestObjectAPI.md
Expand Up @@ -684,7 +684,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
2 changes: 1 addition & 1 deletion website/versioned_docs/version-29.3/JestObjectAPI.md
Expand Up @@ -684,7 +684,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 ee63afc

Please sign in to comment.