function checkPathsEndWithSameFile(path1, path2) {
  const pieces1 = path1.split('/');
  const file1 = pieces1[pieces1.length - 1];
  const pieces2 = path2.split('/');
  const file2 = pieces2[pieces2.length - 1];

  return file1 == file2;
}
Helper for testDelayedLoad. Returns true if the two paths end with the same
file.
E.g., ('../../cool.gif', 'file:///home/usr/somewhere/cool.gif') --> true
@param {string} path1 First url
@param {string} path2 Second url