@@ -5,7 +5,7 @@ import { EmbedSettings } from '../app/embed-settings.js';
5
5
describe ( 'creates embed url' , ( ) => {
6
6
it ( 'handles duck scheme' , ( ) => {
7
7
const actual = EmbedSettings . fromHref ( 'duck://player/123' ) ?. toEmbedUrl ( ) ;
8
- const expected = 'https://www.youtube-nocookie.com/embed/123?iv_load_policy=1&autoplay=1&rel=0&modestbranding=1' ;
8
+ const expected = 'https://www.youtube-nocookie.com/embed/123?iv_load_policy=1&autoplay=1&rel=0&modestbranding=1&color=white ' ;
9
9
deepEqual ( actual , expected ) ;
10
10
} ) ;
11
11
it ( 'handles duck scheme with timestamp' , ( ) => {
@@ -15,6 +15,7 @@ describe('creates embed url', () => {
15
15
autoplay : '1' ,
16
16
rel : '0' ,
17
17
modestbranding : '1' ,
18
+ color : 'white' ,
18
19
start : '3723' ,
19
20
} ;
20
21
if ( ! actual ) throw new Error ( 'unreachable' ) ;
@@ -28,6 +29,7 @@ describe('creates embed url', () => {
28
29
autoplay : '1' ,
29
30
rel : '0' ,
30
31
modestbranding : '1' ,
32
+ color : 'white' ,
31
33
start : '3723' ,
32
34
} ;
33
35
if ( ! actual ) throw new Error ( 'unreachable' ) ;
@@ -41,6 +43,7 @@ describe('creates embed url', () => {
41
43
autoplay : '1' ,
42
44
rel : '0' ,
43
45
modestbranding : '1' ,
46
+ color : 'white' ,
44
47
start : '3723' ,
45
48
} ;
46
49
if ( ! actual ) throw new Error ( 'unreachable' ) ;
@@ -54,6 +57,7 @@ describe('creates embed url', () => {
54
57
autoplay : '1' ,
55
58
rel : '0' ,
56
59
modestbranding : '1' ,
60
+ color : 'white' ,
57
61
} ;
58
62
if ( ! actual ) throw new Error ( 'unreachable' ) ;
59
63
const asParams = Object . fromEntries ( new URL ( actual ) . searchParams ) ;
@@ -67,6 +71,7 @@ describe('creates embed url', () => {
67
71
autoplay : '1' ,
68
72
rel : '0' ,
69
73
modestbranding : '1' ,
74
+ color : 'white' ,
70
75
muted : '1' ,
71
76
} ;
72
77
if ( ! actual ) throw new Error ( 'unreachable' ) ;
@@ -80,6 +85,7 @@ describe('creates embed url', () => {
80
85
iv_load_policy : '1' ,
81
86
rel : '0' ,
82
87
modestbranding : '1' ,
88
+ color : 'white' ,
83
89
} ;
84
90
if ( ! actual ) throw new Error ( 'unreachable' ) ;
85
91
const asParams = Object . fromEntries ( new URL ( actual ) . searchParams ) ;
@@ -93,6 +99,7 @@ describe('creates embed url', () => {
93
99
autoplay : '1' ,
94
100
rel : '0' ,
95
101
modestbranding : '1' ,
102
+ color : 'white' ,
96
103
} ;
97
104
if ( ! actual ) throw new Error ( 'unreachable' ) ;
98
105
const asParams = Object . fromEntries ( new URL ( actual ) . searchParams ) ;
0 commit comments