From b1b949d35ee995ee75c6968715a7f8c8ea601157 Mon Sep 17 00:00:00 2001 From: Jordan Beland Date: Tue, 15 Aug 2017 22:07:49 -0700 Subject: [PATCH] Tests: Update path calculation Fixes gh-3756 Closes gh-3757 --- test/jquery.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/jquery.js b/test/jquery.js index e337a7940..d8eaf8629 100644 --- a/test/jquery.js +++ b/test/jquery.js @@ -2,7 +2,8 @@ ( function() { /* global loadTests: false */ - var path = window.location.pathname.split( "test" )[ 0 ], + var pathname = window.location.pathname, + path = pathname.slice( 0, pathname.lastIndexOf( "test" ) ), QUnit = window.QUnit || parent.QUnit, require = window.require || parent.require, -- 2.39.5