File tree Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 60
60
"@angular/forms" : " ^12.0.0-next.5" ,
61
61
"@angular/platform-browser" : " ^12.0.0-next.5" ,
62
62
"@types/googlemaps" : " ^3.43.1" ,
63
- "@types/youtube" : " ^0.0.40 " ,
63
+ "@types/youtube" : " ^0.0.42 " ,
64
64
"@webcomponents/custom-elements" : " ^1.1.0" ,
65
65
"core-js-bundle" : " ^3.8.2" ,
66
66
"material-components-web" : " 11.0.0-canary.0cde52f5a.0" ,
Original file line number Diff line number Diff line change 6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
8
9
- // A re-creation of YT.PlayerState since enum values cannot be bound to the window
10
- // object.
9
+ // A re-creation of YT.PlayerState since enum values cannot be bound to the window object.
11
10
const playerState = {
12
11
UNSTARTED : - 1 ,
13
12
ENDED : 0 ,
@@ -17,6 +16,13 @@ const playerState = {
17
16
CUED : 5 ,
18
17
} ;
19
18
19
+ // Re-creation of `YT.ModestBranding` since it was changed
20
+ // to a plain enum which we can't reference in tests.
21
+ const modestBranding = {
22
+ Full : 0 ,
23
+ Modest : 1
24
+ } ;
25
+
20
26
interface FakeYtNamespace {
21
27
playerCtorSpy : jasmine . Spy ;
22
28
playerSpy : jasmine . SpyObj < YT . Player > ;
@@ -84,6 +90,7 @@ export function createFakeYtNamespace(): FakeYtNamespace {
84
90
namespace : {
85
91
'Player' : playerCtorSpy as unknown as typeof YT . Player ,
86
92
'PlayerState' : playerState ,
93
+ 'ModestBranding' : modestBranding
87
94
} as typeof YT ,
88
95
} ;
89
96
}
Original file line number Diff line number Diff line change 17
17
},
18
18
"homepage" : " https://github.com/angular/components/tree/master/src/youtube-player#readme" ,
19
19
"dependencies" : {
20
- "@types/youtube" : " ^0.0.38 " ,
20
+ "@types/youtube" : " ^0.0.42 " ,
21
21
"tslib" : " 0.0.0-TSLIB"
22
22
},
23
23
"peerDependencies" : {
Original file line number Diff line number Diff line change 2220
2220
dependencies:
2221
2221
yaml "*"
2222
2222
2223
- "@types/youtube@^0.0.40 ":
2224
- version "0.0.40 "
2225
- resolved "https://registry.yarnpkg.com/@types/youtube/-/youtube-0.0.40 .tgz#93502cc42e4ce06a59db1e2d6fd986260dca31d3 "
2226
- integrity sha512-gMiHfad1VGQ7CoXkhrjWiROPpLTSJydvBO73Z9JIIZ+FpZ2BX9q9Zf/tanP+KUTFoKUqHVv6+xt7sF2gztQ4Og ==
2223
+ "@types/youtube@^0.0.42 ":
2224
+ version "0.0.42 "
2225
+ resolved "https://registry.yarnpkg.com/@types/youtube/-/youtube-0.0.42 .tgz#c3568e3e82e04cbd00cac3b66564ebcd21fd9d90 "
2226
+ integrity sha512-Nqo3HMPFPcNyZ7HNFZJjpH+N4yXqpxBItG+41e7nL9zednovMRZMXWj36CctSznbBcbj6ucvkJDo5iZ8SKqLIw ==
2227
2227
2228
2228
"@typescript-eslint/
[email protected] ":
2229
2229
version "4.14.0"
You can’t perform that action at this time.
0 commit comments