Use hooks, support React 18, drop React < 16 #366
ci.yml
on: pull_request
Types
30s
Code style
30s
Matrix: Tests
Annotations
92 errors and 3 warnings
test/index.test.js > Vimeo > should use `url` prop for full vimeo URLs:
test/index.test.js#L26
AssertionError: expected { id: 169408731, …(21) } to match object { url: 'https://vimeo.com/179290396' }
(22 matching properties omitted from actual)
- Expected
+ Received
Object {
- "url": "https://vimeo.com/179290396",
+ "autopause": true,
+ "autoplay": false,
+ "background": false,
+ "byline": true,
+ "color": undefined,
+ "controls": true,
+ "dnt": false,
+ "height": undefined,
+ "id": 169408731,
+ "keyboard": true,
+ "loop": false,
+ "muted": false,
+ "pip": false,
+ "playsinline": true,
+ "portrait": true,
+ "quality": undefined,
+ "responsive": false,
+ "speed": false,
+ "texttrack": undefined,
+ "title": true,
+ "transparent": true,
+ "width": undefined,
}
❯ test/index.test.js:26:38
|
test/index.test.js > Vimeo > should call onError when `ready()` fails:
test/index.test.js#L37
AssertionError: expected { id: 169408731, …(21) } to match object { id: 404 }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "id": 404,
+ "id": 169408731,
}
❯ test/index.test.js:37:38
|
test/index.test.js > Vimeo > should load a different video when "video" prop changes:
test/index.test.js#L51
AssertionError: expected "spy" to be called at least once
❯ test/index.test.js:51:34
|
test/index.test.js > Vimeo > should pause the video using the "paused" prop:
test/index.test.js#L63
AssertionError: expected "spy" to not be called at all, but actually been called 1 times
Received:
1st spy call:
Array []
Number of calls: 1
❯ test/index.test.js:63:33
|
test/index.test.js > Vimeo > should set the volume using the "volume" prop:
test/index.test.js#L77
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 100,
]
Number of calls: 1
❯ test/index.test.js:77:34
|
test/index.test.js > Vimeo > should set the start time using the "start" prop:
test/index.test.js#L89
AssertionError: expected "spy" to be called with arguments: [ 60 ]
Received:
Number of calls: 0
❯ test/index.test.js:89:39
|
test/index.test.js > Vimeo > should set the player color using the "color" prop:
test/index.test.js#L105
AssertionError: expected { id: 169408731, …(21) } to match object { color: '#0000ff' }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "color": "#0000ff",
+ "color": undefined,
}
❯ test/index.test.js:105:38
|
test/index.test.js > Vimeo > should set the looping flag using the "loop" prop:
test/index.test.js#L122
AssertionError: expected "spy" to be called with arguments: [ true ]
Received:
1st spy call:
Array [
- true,
+ false,
]
Number of calls: 1
❯ test/index.test.js:122:32
|
test/index.test.js > Vimeo > should set the iframe width/height using the width/height props:
test/index.test.js#L133
AssertionError: expected { id: 169408731, …(21) } to match object { width: 640, height: 320 }
(20 matching properties omitted from actual)
- Expected
+ Received
Object {
- "height": 320,
- "width": 640,
+ "height": undefined,
+ "width": undefined,
}
❯ test/index.test.js:133:38
|
test/index.test.js > Vimeo > should set the playback rate using the "playbackRate" props:
test/index.test.js#L153
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 1,
]
Number of calls: 1
❯ test/index.test.js:153:40
|
test/index.test.js > Vimeo > should use `url` prop for full vimeo URLs:
test/index.test.js#L26
AssertionError: expected { id: 169408731, …(21) } to match object { url: 'https://vimeo.com/179290396' }
(22 matching properties omitted from actual)
- Expected
+ Received
Object {
- "url": "https://vimeo.com/179290396",
+ "autopause": true,
+ "autoplay": false,
+ "background": false,
+ "byline": true,
+ "color": undefined,
+ "controls": true,
+ "dnt": false,
+ "height": undefined,
+ "id": 169408731,
+ "keyboard": true,
+ "loop": false,
+ "muted": false,
+ "pip": false,
+ "playsinline": true,
+ "portrait": true,
+ "quality": undefined,
+ "responsive": false,
+ "speed": false,
+ "texttrack": undefined,
+ "title": true,
+ "transparent": true,
+ "width": undefined,
}
❯ test/index.test.js:26:38
|
test/index.test.js > Vimeo > should call onError when `ready()` fails:
test/index.test.js#L37
AssertionError: expected { id: 169408731, …(21) } to match object { id: 404 }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "id": 404,
+ "id": 169408731,
}
❯ test/index.test.js:37:38
|
test/index.test.js > Vimeo > should load a different video when "video" prop changes:
test/index.test.js#L51
AssertionError: expected "spy" to be called at least once
❯ test/index.test.js:51:34
|
test/index.test.js > Vimeo > should pause the video using the "paused" prop:
test/index.test.js#L63
AssertionError: expected "spy" to not be called at all, but actually been called 1 times
Received:
1st spy call:
Array []
Number of calls: 1
❯ test/index.test.js:63:33
|
test/index.test.js > Vimeo > should set the volume using the "volume" prop:
test/index.test.js#L77
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 100,
]
Number of calls: 1
❯ test/index.test.js:77:34
|
test/index.test.js > Vimeo > should set the start time using the "start" prop:
test/index.test.js#L89
AssertionError: expected "spy" to be called with arguments: [ 60 ]
Received:
Number of calls: 0
❯ test/index.test.js:89:39
|
test/index.test.js > Vimeo > should set the player color using the "color" prop:
test/index.test.js#L105
AssertionError: expected { id: 169408731, …(21) } to match object { color: '#0000ff' }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "color": "#0000ff",
+ "color": undefined,
}
❯ test/index.test.js:105:38
|
test/index.test.js > Vimeo > should set the looping flag using the "loop" prop:
test/index.test.js#L122
AssertionError: expected "spy" to be called with arguments: [ true ]
Received:
1st spy call:
Array [
- true,
+ false,
]
Number of calls: 1
❯ test/index.test.js:122:32
|
test/index.test.js > Vimeo > should set the iframe width/height using the width/height props:
test/index.test.js#L133
AssertionError: expected { id: 169408731, …(21) } to match object { width: 640, height: 320 }
(20 matching properties omitted from actual)
- Expected
+ Received
Object {
- "height": 320,
- "width": 640,
+ "height": undefined,
+ "width": undefined,
}
❯ test/index.test.js:133:38
|
test/index.test.js > Vimeo > should set the playback rate using the "playbackRate" props:
test/index.test.js#L153
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 1,
]
Number of calls: 1
❯ test/index.test.js:153:40
|
test/index.test.js > Vimeo > should use `url` prop for full vimeo URLs:
test/index.test.js#L26
AssertionError: expected { id: 169408731, …(21) } to match object { url: 'https://vimeo.com/179290396' }
(22 matching properties omitted from actual)
- Expected
+ Received
Object {
- "url": "https://vimeo.com/179290396",
+ "autopause": true,
+ "autoplay": false,
+ "background": false,
+ "byline": true,
+ "color": undefined,
+ "controls": true,
+ "dnt": false,
+ "height": undefined,
+ "id": 169408731,
+ "keyboard": true,
+ "loop": false,
+ "muted": false,
+ "pip": false,
+ "playsinline": true,
+ "portrait": true,
+ "quality": undefined,
+ "responsive": false,
+ "speed": false,
+ "texttrack": undefined,
+ "title": true,
+ "transparent": true,
+ "width": undefined,
}
❯ test/index.test.js:26:38
|
test/index.test.js > Vimeo > should call onError when `ready()` fails:
test/index.test.js#L37
AssertionError: expected { id: 169408731, …(21) } to match object { id: 404 }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "id": 404,
+ "id": 169408731,
}
❯ test/index.test.js:37:38
|
test/index.test.js > Vimeo > should load a different video when "video" prop changes:
test/index.test.js#L51
AssertionError: expected "spy" to be called at least once
❯ test/index.test.js:51:34
|
test/index.test.js > Vimeo > should pause the video using the "paused" prop:
test/index.test.js#L63
AssertionError: expected "spy" to not be called at all, but actually been called 1 times
Received:
1st spy call:
Array []
Number of calls: 1
❯ test/index.test.js:63:33
|
test/index.test.js > Vimeo > should set the volume using the "volume" prop:
test/index.test.js#L77
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 100,
]
Number of calls: 1
❯ test/index.test.js:77:34
|
test/index.test.js > Vimeo > should set the start time using the "start" prop:
test/index.test.js#L89
AssertionError: expected "spy" to be called with arguments: [ 60 ]
Received:
Number of calls: 0
❯ test/index.test.js:89:39
|
test/index.test.js > Vimeo > should set the player color using the "color" prop:
test/index.test.js#L105
AssertionError: expected { id: 169408731, …(21) } to match object { color: '#0000ff' }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "color": "#0000ff",
+ "color": undefined,
}
❯ test/index.test.js:105:38
|
test/index.test.js > Vimeo > should set the looping flag using the "loop" prop:
test/index.test.js#L122
AssertionError: expected "spy" to be called with arguments: [ true ]
Received:
1st spy call:
Array [
- true,
+ false,
]
Number of calls: 1
❯ test/index.test.js:122:32
|
test/index.test.js > Vimeo > should set the iframe width/height using the width/height props:
test/index.test.js#L133
AssertionError: expected { id: 169408731, …(21) } to match object { width: 640, height: 320 }
(20 matching properties omitted from actual)
- Expected
+ Received
Object {
- "height": 320,
- "width": 640,
+ "height": undefined,
+ "width": undefined,
}
❯ test/index.test.js:133:38
|
test/index.test.js > Vimeo > should set the playback rate using the "playbackRate" props:
test/index.test.js#L153
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 1,
]
Number of calls: 1
❯ test/index.test.js:153:40
|
Types
Process completed with exit code 1.
|
test/index.test.js > Vimeo > should use `url` prop for full vimeo URLs:
test/index.test.js#L26
AssertionError: expected { id: 169408731, …(21) } to match object { url: 'https://vimeo.com/179290396' }
(22 matching properties omitted from actual)
- Expected
+ Received
Object {
- "url": "https://vimeo.com/179290396",
+ "autopause": true,
+ "autoplay": false,
+ "background": false,
+ "byline": true,
+ "color": undefined,
+ "controls": true,
+ "dnt": false,
+ "height": undefined,
+ "id": 169408731,
+ "keyboard": true,
+ "loop": false,
+ "muted": false,
+ "pip": false,
+ "playsinline": true,
+ "portrait": true,
+ "quality": undefined,
+ "responsive": false,
+ "speed": false,
+ "texttrack": undefined,
+ "title": true,
+ "transparent": true,
+ "width": undefined,
}
❯ test/index.test.js:26:38
|
test/index.test.js > Vimeo > should call onError when `ready()` fails:
test/index.test.js#L37
AssertionError: expected { id: 169408731, …(21) } to match object { id: 404 }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "id": 404,
+ "id": 169408731,
}
❯ test/index.test.js:37:38
|
test/index.test.js > Vimeo > should load a different video when "video" prop changes:
test/index.test.js#L51
AssertionError: expected "spy" to be called at least once
❯ test/index.test.js:51:34
|
test/index.test.js > Vimeo > should pause the video using the "paused" prop:
test/index.test.js#L63
AssertionError: expected "spy" to not be called at all, but actually been called 1 times
Received:
1st spy call:
Array []
Number of calls: 1
❯ test/index.test.js:63:33
|
test/index.test.js > Vimeo > should set the volume using the "volume" prop:
test/index.test.js#L77
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 100,
]
Number of calls: 1
❯ test/index.test.js:77:34
|
test/index.test.js > Vimeo > should set the start time using the "start" prop:
test/index.test.js#L89
AssertionError: expected "spy" to be called with arguments: [ 60 ]
Received:
Number of calls: 0
❯ test/index.test.js:89:39
|
test/index.test.js > Vimeo > should set the player color using the "color" prop:
test/index.test.js#L105
AssertionError: expected { id: 169408731, …(21) } to match object { color: '#0000ff' }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "color": "#0000ff",
+ "color": undefined,
}
❯ test/index.test.js:105:38
|
test/index.test.js > Vimeo > should set the looping flag using the "loop" prop:
test/index.test.js#L122
AssertionError: expected "spy" to be called with arguments: [ true ]
Received:
1st spy call:
Array [
- true,
+ false,
]
Number of calls: 1
❯ test/index.test.js:122:32
|
test/index.test.js > Vimeo > should set the iframe width/height using the width/height props:
test/index.test.js#L133
AssertionError: expected { id: 169408731, …(21) } to match object { width: 640, height: 320 }
(20 matching properties omitted from actual)
- Expected
+ Received
Object {
- "height": 320,
- "width": 640,
+ "height": undefined,
+ "width": undefined,
}
❯ test/index.test.js:133:38
|
test/index.test.js > Vimeo > should set the playback rate using the "playbackRate" props:
test/index.test.js#L153
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 1,
]
Number of calls: 1
❯ test/index.test.js:153:40
|
Tests (14.x, 16.0.0)
Process completed with exit code 1.
|
test/index.test.js > Vimeo > should use `url` prop for full vimeo URLs:
test/index.test.js#L26
AssertionError: expected { id: 169408731, …(21) } to match object { url: 'https://vimeo.com/179290396' }
(22 matching properties omitted from actual)
- Expected
+ Received
Object {
- "url": "https://vimeo.com/179290396",
+ "autopause": true,
+ "autoplay": false,
+ "background": false,
+ "byline": true,
+ "color": undefined,
+ "controls": true,
+ "dnt": false,
+ "height": undefined,
+ "id": 169408731,
+ "keyboard": true,
+ "loop": false,
+ "muted": false,
+ "pip": false,
+ "playsinline": true,
+ "portrait": true,
+ "quality": undefined,
+ "responsive": false,
+ "speed": false,
+ "texttrack": undefined,
+ "title": true,
+ "transparent": true,
+ "width": undefined,
}
❯ test/index.test.js:26:38
|
test/index.test.js > Vimeo > should call onError when `ready()` fails:
test/index.test.js#L37
AssertionError: expected { id: 169408731, …(21) } to match object { id: 404 }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "id": 404,
+ "id": 169408731,
}
❯ test/index.test.js:37:38
|
test/index.test.js > Vimeo > should load a different video when "video" prop changes:
test/index.test.js#L51
AssertionError: expected "spy" to be called at least once
❯ test/index.test.js:51:34
|
test/index.test.js > Vimeo > should pause the video using the "paused" prop:
test/index.test.js#L63
AssertionError: expected "spy" to not be called at all, but actually been called 1 times
Received:
1st spy call:
Array []
Number of calls: 1
❯ test/index.test.js:63:33
|
test/index.test.js > Vimeo > should set the volume using the "volume" prop:
test/index.test.js#L77
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 100,
]
Number of calls: 1
❯ test/index.test.js:77:34
|
test/index.test.js > Vimeo > should set the start time using the "start" prop:
test/index.test.js#L89
AssertionError: expected "spy" to be called with arguments: [ 60 ]
Received:
Number of calls: 0
❯ test/index.test.js:89:39
|
test/index.test.js > Vimeo > should set the player color using the "color" prop:
test/index.test.js#L105
AssertionError: expected { id: 169408731, …(21) } to match object { color: '#0000ff' }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "color": "#0000ff",
+ "color": undefined,
}
❯ test/index.test.js:105:38
|
test/index.test.js > Vimeo > should set the looping flag using the "loop" prop:
test/index.test.js#L122
AssertionError: expected "spy" to be called with arguments: [ true ]
Received:
1st spy call:
Array [
- true,
+ false,
]
Number of calls: 1
❯ test/index.test.js:122:32
|
test/index.test.js > Vimeo > should set the iframe width/height using the width/height props:
test/index.test.js#L133
AssertionError: expected { id: 169408731, …(21) } to match object { width: 640, height: 320 }
(20 matching properties omitted from actual)
- Expected
+ Received
Object {
- "height": 320,
- "width": 640,
+ "height": undefined,
+ "width": undefined,
}
❯ test/index.test.js:133:38
|
test/index.test.js > Vimeo > should set the playback rate using the "playbackRate" props:
test/index.test.js#L153
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 1,
]
Number of calls: 1
❯ test/index.test.js:153:40
|
test/index.test.js > Vimeo > should use `url` prop for full vimeo URLs:
test/index.test.js#L26
AssertionError: expected { id: 169408731, …(21) } to match object { url: 'https://vimeo.com/179290396' }
(22 matching properties omitted from actual)
- Expected
+ Received
Object {
- "url": "https://vimeo.com/179290396",
+ "autopause": true,
+ "autoplay": false,
+ "background": false,
+ "byline": true,
+ "color": undefined,
+ "controls": true,
+ "dnt": false,
+ "height": undefined,
+ "id": 169408731,
+ "keyboard": true,
+ "loop": false,
+ "muted": false,
+ "pip": false,
+ "playsinline": true,
+ "portrait": true,
+ "quality": undefined,
+ "responsive": false,
+ "speed": false,
+ "texttrack": undefined,
+ "title": true,
+ "transparent": true,
+ "width": undefined,
}
❯ test/index.test.js:26:38
|
test/index.test.js > Vimeo > should call onError when `ready()` fails:
test/index.test.js#L37
AssertionError: expected { id: 169408731, …(21) } to match object { id: 404 }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "id": 404,
+ "id": 169408731,
}
❯ test/index.test.js:37:38
|
test/index.test.js > Vimeo > should load a different video when "video" prop changes:
test/index.test.js#L51
AssertionError: expected "spy" to be called at least once
❯ test/index.test.js:51:34
|
test/index.test.js > Vimeo > should pause the video using the "paused" prop:
test/index.test.js#L63
AssertionError: expected "spy" to not be called at all, but actually been called 1 times
Received:
1st spy call:
Array []
Number of calls: 1
❯ test/index.test.js:63:33
|
test/index.test.js > Vimeo > should set the volume using the "volume" prop:
test/index.test.js#L77
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 100,
]
Number of calls: 1
❯ test/index.test.js:77:34
|
test/index.test.js > Vimeo > should set the start time using the "start" prop:
test/index.test.js#L89
AssertionError: expected "spy" to be called with arguments: [ 60 ]
Received:
Number of calls: 0
❯ test/index.test.js:89:39
|
test/index.test.js > Vimeo > should set the player color using the "color" prop:
test/index.test.js#L105
AssertionError: expected { id: 169408731, …(21) } to match object { color: '#0000ff' }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "color": "#0000ff",
+ "color": undefined,
}
❯ test/index.test.js:105:38
|
test/index.test.js > Vimeo > should set the looping flag using the "loop" prop:
test/index.test.js#L122
AssertionError: expected "spy" to be called with arguments: [ true ]
Received:
1st spy call:
Array [
- true,
+ false,
]
Number of calls: 1
❯ test/index.test.js:122:32
|
test/index.test.js > Vimeo > should set the iframe width/height using the width/height props:
test/index.test.js#L133
AssertionError: expected { id: 169408731, …(21) } to match object { width: 640, height: 320 }
(20 matching properties omitted from actual)
- Expected
+ Received
Object {
- "height": 320,
- "width": 640,
+ "height": undefined,
+ "width": undefined,
}
❯ test/index.test.js:133:38
|
test/index.test.js > Vimeo > should set the playback rate using the "playbackRate" props:
test/index.test.js#L153
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 1,
]
Number of calls: 1
❯ test/index.test.js:153:40
|
test/index.test.js > Vimeo > should use `url` prop for full vimeo URLs:
test/index.test.js#L26
AssertionError: expected { id: 169408731, …(21) } to match object { url: 'https://vimeo.com/179290396' }
(22 matching properties omitted from actual)
- Expected
+ Received
Object {
- "url": "https://vimeo.com/179290396",
+ "autopause": true,
+ "autoplay": false,
+ "background": false,
+ "byline": true,
+ "color": undefined,
+ "controls": true,
+ "dnt": false,
+ "height": undefined,
+ "id": 169408731,
+ "keyboard": true,
+ "loop": false,
+ "muted": false,
+ "pip": false,
+ "playsinline": true,
+ "portrait": true,
+ "quality": undefined,
+ "responsive": false,
+ "speed": false,
+ "texttrack": undefined,
+ "title": true,
+ "transparent": true,
+ "width": undefined,
}
❯ test/index.test.js:26:38
|
test/index.test.js > Vimeo > should call onError when `ready()` fails:
test/index.test.js#L37
AssertionError: expected { id: 169408731, …(21) } to match object { id: 404 }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "id": 404,
+ "id": 169408731,
}
❯ test/index.test.js:37:38
|
test/index.test.js > Vimeo > should load a different video when "video" prop changes:
test/index.test.js#L51
AssertionError: expected "spy" to be called at least once
❯ test/index.test.js:51:34
|
test/index.test.js > Vimeo > should pause the video using the "paused" prop:
test/index.test.js#L63
AssertionError: expected "spy" to not be called at all, but actually been called 1 times
Received:
1st spy call:
Array []
Number of calls: 1
❯ test/index.test.js:63:33
|
test/index.test.js > Vimeo > should set the volume using the "volume" prop:
test/index.test.js#L77
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 100,
]
Number of calls: 1
❯ test/index.test.js:77:34
|
test/index.test.js > Vimeo > should set the start time using the "start" prop:
test/index.test.js#L89
AssertionError: expected "spy" to be called with arguments: [ 60 ]
Received:
Number of calls: 0
❯ test/index.test.js:89:39
|
test/index.test.js > Vimeo > should set the player color using the "color" prop:
test/index.test.js#L105
AssertionError: expected { id: 169408731, …(21) } to match object { color: '#0000ff' }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "color": "#0000ff",
+ "color": undefined,
}
❯ test/index.test.js:105:38
|
test/index.test.js > Vimeo > should set the looping flag using the "loop" prop:
test/index.test.js#L122
AssertionError: expected "spy" to be called with arguments: [ true ]
Received:
1st spy call:
Array [
- true,
+ false,
]
Number of calls: 1
❯ test/index.test.js:122:32
|
test/index.test.js > Vimeo > should set the iframe width/height using the width/height props:
test/index.test.js#L133
AssertionError: expected { id: 169408731, …(21) } to match object { width: 640, height: 320 }
(20 matching properties omitted from actual)
- Expected
+ Received
Object {
- "height": 320,
- "width": 640,
+ "height": undefined,
+ "width": undefined,
}
❯ test/index.test.js:133:38
|
test/index.test.js > Vimeo > should set the playback rate using the "playbackRate" props:
test/index.test.js#L153
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 1,
]
Number of calls: 1
❯ test/index.test.js:153:40
|
test/index.test.js > Vimeo > should use `url` prop for full vimeo URLs:
test/index.test.js#L26
AssertionError: expected { id: 169408731, …(21) } to match object { url: 'https://vimeo.com/179290396' }
(22 matching properties omitted from actual)
- Expected
+ Received
Object {
- "url": "https://vimeo.com/179290396",
+ "autopause": true,
+ "autoplay": false,
+ "background": false,
+ "byline": true,
+ "color": undefined,
+ "controls": true,
+ "dnt": false,
+ "height": undefined,
+ "id": 169408731,
+ "keyboard": true,
+ "loop": false,
+ "muted": false,
+ "pip": false,
+ "playsinline": true,
+ "portrait": true,
+ "quality": undefined,
+ "responsive": false,
+ "speed": false,
+ "texttrack": undefined,
+ "title": true,
+ "transparent": true,
+ "width": undefined,
}
❯ test/index.test.js:26:38
|
test/index.test.js > Vimeo > should call onError when `ready()` fails:
test/index.test.js#L37
AssertionError: expected { id: 169408731, …(21) } to match object { id: 404 }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "id": 404,
+ "id": 169408731,
}
❯ test/index.test.js:37:38
|
test/index.test.js > Vimeo > should load a different video when "video" prop changes:
test/index.test.js#L51
AssertionError: expected "spy" to be called at least once
❯ test/index.test.js:51:34
|
test/index.test.js > Vimeo > should pause the video using the "paused" prop:
test/index.test.js#L63
AssertionError: expected "spy" to not be called at all, but actually been called 1 times
Received:
1st spy call:
Array []
Number of calls: 1
❯ test/index.test.js:63:33
|
test/index.test.js > Vimeo > should set the volume using the "volume" prop:
test/index.test.js#L77
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 100,
]
Number of calls: 1
❯ test/index.test.js:77:34
|
test/index.test.js > Vimeo > should set the start time using the "start" prop:
test/index.test.js#L89
AssertionError: expected "spy" to be called with arguments: [ 60 ]
Received:
Number of calls: 0
❯ test/index.test.js:89:39
|
test/index.test.js > Vimeo > should set the player color using the "color" prop:
test/index.test.js#L105
AssertionError: expected { id: 169408731, …(21) } to match object { color: '#0000ff' }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "color": "#0000ff",
+ "color": undefined,
}
❯ test/index.test.js:105:38
|
test/index.test.js > Vimeo > should set the looping flag using the "loop" prop:
test/index.test.js#L122
AssertionError: expected "spy" to be called with arguments: [ true ]
Received:
1st spy call:
Array [
- true,
+ false,
]
Number of calls: 1
❯ test/index.test.js:122:32
|
test/index.test.js > Vimeo > should set the iframe width/height using the width/height props:
test/index.test.js#L133
AssertionError: expected { id: 169408731, …(21) } to match object { width: 640, height: 320 }
(20 matching properties omitted from actual)
- Expected
+ Received
Object {
- "height": 320,
- "width": 640,
+ "height": undefined,
+ "width": undefined,
}
❯ test/index.test.js:133:38
|
test/index.test.js > Vimeo > should set the playback rate using the "playbackRate" props:
test/index.test.js#L153
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 1,
]
Number of calls: 1
❯ test/index.test.js:153:40
|
test/index.test.js > Vimeo > should use `url` prop for full vimeo URLs:
test/index.test.js#L26
AssertionError: expected { id: 169408731, …(21) } to match object { url: 'https://vimeo.com/179290396' }
(22 matching properties omitted from actual)
- Expected
+ Received
Object {
- "url": "https://vimeo.com/179290396",
+ "autopause": true,
+ "autoplay": false,
+ "background": false,
+ "byline": true,
+ "color": undefined,
+ "controls": true,
+ "dnt": false,
+ "height": undefined,
+ "id": 169408731,
+ "keyboard": true,
+ "loop": false,
+ "muted": false,
+ "pip": false,
+ "playsinline": true,
+ "portrait": true,
+ "quality": undefined,
+ "responsive": false,
+ "speed": false,
+ "texttrack": undefined,
+ "title": true,
+ "transparent": true,
+ "width": undefined,
}
❯ test/index.test.js:26:38
|
test/index.test.js > Vimeo > should call onError when `ready()` fails:
test/index.test.js#L37
AssertionError: expected { id: 169408731, …(21) } to match object { id: 404 }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "id": 404,
+ "id": 169408731,
}
❯ test/index.test.js:37:38
|
test/index.test.js > Vimeo > should load a different video when "video" prop changes:
test/index.test.js#L51
AssertionError: expected "spy" to be called at least once
❯ test/index.test.js:51:34
|
test/index.test.js > Vimeo > should pause the video using the "paused" prop:
test/index.test.js#L63
AssertionError: expected "spy" to not be called at all, but actually been called 1 times
Received:
1st spy call:
Array []
Number of calls: 1
❯ test/index.test.js:63:33
|
test/index.test.js > Vimeo > should set the volume using the "volume" prop:
test/index.test.js#L77
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 100,
]
Number of calls: 1
❯ test/index.test.js:77:34
|
test/index.test.js > Vimeo > should set the start time using the "start" prop:
test/index.test.js#L89
AssertionError: expected "spy" to be called with arguments: [ 60 ]
Received:
Number of calls: 0
❯ test/index.test.js:89:39
|
test/index.test.js > Vimeo > should set the player color using the "color" prop:
test/index.test.js#L105
AssertionError: expected { id: 169408731, …(21) } to match object { color: '#0000ff' }
(21 matching properties omitted from actual)
- Expected
+ Received
Object {
- "color": "#0000ff",
+ "color": undefined,
}
❯ test/index.test.js:105:38
|
test/index.test.js > Vimeo > should set the looping flag using the "loop" prop:
test/index.test.js#L122
AssertionError: expected "spy" to be called with arguments: [ true ]
Received:
1st spy call:
Array [
- true,
+ false,
]
Number of calls: 1
❯ test/index.test.js:122:32
|
test/index.test.js > Vimeo > should set the iframe width/height using the width/height props:
test/index.test.js#L133
AssertionError: expected { id: 169408731, …(21) } to match object { width: 640, height: 320 }
(20 matching properties omitted from actual)
- Expected
+ Received
Object {
- "height": 320,
- "width": 640,
+ "height": undefined,
+ "width": undefined,
}
❯ test/index.test.js:133:38
|
test/index.test.js > Vimeo > should set the playback rate using the "playbackRate" props:
test/index.test.js#L153
AssertionError: expected "spy" to be called with arguments: [ 0.5 ]
Received:
1st spy call:
Array [
- 0.5,
+ 1,
]
Number of calls: 1
❯ test/index.test.js:153:40
|
Code style:
src/index.tsx#L299
React Hook useEffect has missing dependencies: 'container' and 'options'. Either include them or remove the dependency array
|
Code style:
src/index.tsx#L308
React Hook useEffect has a missing dependency: 'callback'. Either include it or remove the dependency array. If 'callback' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
Code style:
src/index.tsx#L308
React Hook useEffect has a spread element in its dependency array. This means we can't statically verify whether you've passed the correct dependencies
|