From 1d57d503ac6e5b3c890362ac81e94f2ce0be2196 Mon Sep 17 00:00:00 2001 From: zepumph Date: Tue, 19 May 2020 14:21:43 -0800 Subject: [PATCH] ending slash in localTestingURL is optional, https://github.com/phetsims/aqua/issues/90 --- js/grunt/phet-io/generatePhetioAPI.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/grunt/phet-io/generatePhetioAPI.js b/js/grunt/phet-io/generatePhetioAPI.js index 88b3ad2cf..ced59c9ae 100644 --- a/js/grunt/phet-io/generatePhetioAPI.js +++ b/js/grunt/phet-io/generatePhetioAPI.js @@ -11,13 +11,12 @@ const puppeteer = require( 'puppeteer' ); - /** * @param {string} repo * @param {string} localTestingURL - the browser url to access the root of phet repos */ module.exports = async ( repo, localTestingURL ) => { - assert( localTestingURL.endsWith( '/' ), 'localTestingURL should end in a forward slash' ); + localTestingURL = localTestingURL.endsWith( '/' ) ? localTestingURL : `${localTestingURL}/`; return new Promise( async ( resolve, reject ) => {