@@ -5,7 +5,7 @@ import { EmbedSettings } from '../app/embed-settings.js';
55describe ( 'creates embed url' , ( ) => {
66 it ( 'handles duck scheme' , ( ) => {
77 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 ' ;
99 deepEqual ( actual , expected ) ;
1010 } ) ;
1111 it ( 'handles duck scheme with timestamp' , ( ) => {
@@ -15,6 +15,7 @@ describe('creates embed url', () => {
1515 autoplay : '1' ,
1616 rel : '0' ,
1717 modestbranding : '1' ,
18+ color : 'white' ,
1819 start : '3723' ,
1920 } ;
2021 if ( ! actual ) throw new Error ( 'unreachable' ) ;
@@ -28,6 +29,7 @@ describe('creates embed url', () => {
2829 autoplay : '1' ,
2930 rel : '0' ,
3031 modestbranding : '1' ,
32+ color : 'white' ,
3133 start : '3723' ,
3234 } ;
3335 if ( ! actual ) throw new Error ( 'unreachable' ) ;
@@ -41,6 +43,7 @@ describe('creates embed url', () => {
4143 autoplay : '1' ,
4244 rel : '0' ,
4345 modestbranding : '1' ,
46+ color : 'white' ,
4447 start : '3723' ,
4548 } ;
4649 if ( ! actual ) throw new Error ( 'unreachable' ) ;
@@ -54,6 +57,7 @@ describe('creates embed url', () => {
5457 autoplay : '1' ,
5558 rel : '0' ,
5659 modestbranding : '1' ,
60+ color : 'white' ,
5761 } ;
5862 if ( ! actual ) throw new Error ( 'unreachable' ) ;
5963 const asParams = Object . fromEntries ( new URL ( actual ) . searchParams ) ;
@@ -67,6 +71,7 @@ describe('creates embed url', () => {
6771 autoplay : '1' ,
6872 rel : '0' ,
6973 modestbranding : '1' ,
74+ color : 'white' ,
7075 muted : '1' ,
7176 } ;
7277 if ( ! actual ) throw new Error ( 'unreachable' ) ;
@@ -80,6 +85,7 @@ describe('creates embed url', () => {
8085 iv_load_policy : '1' ,
8186 rel : '0' ,
8287 modestbranding : '1' ,
88+ color : 'white' ,
8389 } ;
8490 if ( ! actual ) throw new Error ( 'unreachable' ) ;
8591 const asParams = Object . fromEntries ( new URL ( actual ) . searchParams ) ;
@@ -93,6 +99,7 @@ describe('creates embed url', () => {
9399 autoplay : '1' ,
94100 rel : '0' ,
95101 modestbranding : '1' ,
102+ color : 'white' ,
96103 } ;
97104 if ( ! actual ) throw new Error ( 'unreachable' ) ;
98105 const asParams = Object . fromEntries ( new URL ( actual ) . searchParams ) ;
0 commit comments