@@ -62,6 +62,36 @@ describe('compute-download-urls', () => {
6262 ) ;
6363 } ) ;
6464
65+ it ( 'version 4 basic' , async ( ) => {
66+ const actual = await computeDownloadUrls ( {
67+ seleniumVersion : '4.1.0' ,
68+ seleniumBaseURL : 'https://localhost' ,
69+ drivers : { } ,
70+ } ) ;
71+
72+ assert . strictEqual ( actual . selenium , 'https://localhost/selenium-4.1.0/selenium-server-4.1.0.jar' ) ;
73+ } ) ;
74+
75+ it ( 'version 4 with patch' , async ( ) => {
76+ const actual = await computeDownloadUrls ( {
77+ seleniumVersion : '4.1.1' ,
78+ seleniumBaseURL : 'https://localhost' ,
79+ drivers : { } ,
80+ } ) ;
81+
82+ assert . strictEqual ( actual . selenium , 'https://localhost/selenium-4.1.0/selenium-server-4.1.1.jar' ) ;
83+ } ) ;
84+
85+ it ( 'version 4 with beta string' , async ( ) => {
86+ const actual = await computeDownloadUrls ( {
87+ seleniumVersion : '4.0.0-beta-3' ,
88+ seleniumBaseURL : 'https://localhost' ,
89+ drivers : { } ,
90+ } ) ;
91+
92+ assert . strictEqual ( actual . selenium , 'https://localhost/selenium-4.0.0-beta-3/selenium-server-4.0.0-beta-3.jar' ) ;
93+ } ) ;
94+
6595 it ( 'fullURL' , async ( ) => {
6696 const actual = await computeDownloadUrls ( {
6797 seleniumVersion : '4.0.0-alpha-7' ,
0 commit comments