@@ -11,7 +11,7 @@ import {
1111 findFallbackVersion ,
1212 getDefaultChromePath ,
1313 getInstallPath ,
14- } from "../src/chromedriver-helper" ;
14+ } from "../src/chromedriver-helper.js " ;
1515
1616// ---------------------------------------------------------------------------
1717// Mock API response fixture
@@ -106,7 +106,7 @@ describe("parseVersion3", () => {
106106
107107 it ( "throws when version has fewer than 3 parts" , ( ) => {
108108 expect ( ( ) => parseVersion3 ( "115.0" ) ) . toThrow (
109- "Version must have at least 3 parts"
109+ "Version must have at least 3 parts" ,
110110 ) ;
111111 } ) ;
112112} ) ;
@@ -180,21 +180,21 @@ describe("convertArchForModernAPI", () => {
180180describe ( "buildLegacyLatestReleaseUrl" , ( ) => {
181181 it ( "builds correct URL for version 114" , ( ) => {
182182 expect ( buildLegacyLatestReleaseUrl ( 114 ) ) . toBe (
183- "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_114"
183+ "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_114" ,
184184 ) ;
185185 } ) ;
186186} ) ;
187187
188188describe ( "buildLegacyDownloadUrl" , ( ) => {
189189 it ( "builds correct download URL" , ( ) => {
190190 expect ( buildLegacyDownloadUrl ( "114.0.5735.90" , "linux64" ) ) . toBe (
191- "https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_linux64.zip"
191+ "https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_linux64.zip" ,
192192 ) ;
193193 } ) ;
194194
195195 it ( "builds correct URL for mac64" , ( ) => {
196196 expect ( buildLegacyDownloadUrl ( "114.0.5735.90" , "mac64" ) ) . toBe (
197- "https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_mac64.zip"
197+ "https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_mac64.zip" ,
198198 ) ;
199199 } ) ;
200200} ) ;
@@ -204,29 +204,29 @@ describe("extractDriverUrlFromJson", () => {
204204 const url = extractDriverUrlFromJson (
205205 MOCK_API_RESPONSE ,
206206 "131.0.6778.204" ,
207- "linux64"
207+ "linux64" ,
208208 ) ;
209209 expect ( url ) . toBe (
210- "https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.204/linux64/chromedriver-linux64.zip"
210+ "https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.204/linux64/chromedriver-linux64.zip" ,
211211 ) ;
212212 } ) ;
213213
214214 it ( "extracts URL for mac-arm64" , ( ) => {
215215 const url = extractDriverUrlFromJson (
216216 MOCK_API_RESPONSE ,
217217 "131.0.6778.204" ,
218- "mac-arm64"
218+ "mac-arm64" ,
219219 ) ;
220220 expect ( url ) . toBe (
221- "https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.204/mac-arm64/chromedriver-mac-arm64.zip"
221+ "https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.204/mac-arm64/chromedriver-mac-arm64.zip" ,
222222 ) ;
223223 } ) ;
224224
225225 it ( "returns null for non-existent version" , ( ) => {
226226 const url = extractDriverUrlFromJson (
227227 MOCK_API_RESPONSE ,
228228 "999.0.0.0" ,
229- "linux64"
229+ "linux64" ,
230230 ) ;
231231 expect ( url ) . toBeNull ( ) ;
232232 } ) ;
@@ -235,7 +235,7 @@ describe("extractDriverUrlFromJson", () => {
235235 const url = extractDriverUrlFromJson (
236236 MOCK_API_RESPONSE ,
237237 "114.0.5735.90" ,
238- "win32"
238+ "win32" ,
239239 ) ;
240240 expect ( url ) . toBeNull ( ) ;
241241 } ) ;
@@ -274,27 +274,27 @@ describe("findFallbackVersion", () => {
274274describe ( "getDefaultChromePath" , ( ) => {
275275 it ( "returns google-chrome-stable for linux" , ( ) => {
276276 expect ( getDefaultChromePath ( "linux" as NodeJS . Platform ) ) . toBe (
277- "google-chrome-stable"
277+ "google-chrome-stable" ,
278278 ) ;
279279 } ) ;
280280
281281 it ( "returns macOS app path for darwin" , ( ) => {
282282 expect ( getDefaultChromePath ( "darwin" ) ) . toBe (
283- "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/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
283+ "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/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" ,
284284 ) ;
285285 } ) ;
286286
287287 it ( "returns Windows exe path for win32" , ( ) => {
288288 expect ( getDefaultChromePath ( "win32" ) ) . toBe (
289- "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
289+ "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe" ,
290290 ) ;
291291 } ) ;
292292} ) ;
293293
294294describe ( "getInstallPath" , ( ) => {
295295 it ( "returns /usr/local/bin/chromedriver for linux" , ( ) => {
296296 expect ( getInstallPath ( "linux" as NodeJS . Platform ) ) . toBe (
297- "/usr/local/bin/chromedriver"
297+ "/usr/local/bin/chromedriver" ,
298298 ) ;
299299 } ) ;
300300
@@ -304,7 +304,7 @@ describe("getInstallPath", () => {
304304
305305 it ( "returns Windows SeleniumWebDrivers path for win32" , ( ) => {
306306 expect ( getInstallPath ( "win32" ) ) . toBe (
307- "C:\\SeleniumWebDrivers\\ChromeDriver"
307+ "C:\\SeleniumWebDrivers\\ChromeDriver" ,
308308 ) ;
309309 } ) ;
310310} ) ;
0 commit comments