message: Added some tests to demonstrate encoding/unencoding of URI
diff: @@ -46,6 +46,11 @@ suite('pathFromUrl()', () => {
  const path = pathFromUrl(RootPath, '../../../still/../root/path');
  assert.equal(path, pathJoin(RootPath, 'root', 'path'));
  });
  +
  + test('will unencode the URI-encoded sequences, like spaces', () => {
  + const path = pathFromUrl(RootPath, '/spaced%20out');
  + assert.equal(path, pathJoin(RootPath, 'spaced out'));
  + });
  });
  suite('urlFromPath()', () => {
  @@ -71,4 +76,9 @@ suite('urlFromPath()', () => {
  pathJoin(RootPath, 'bower_components', 'app-layout', 'docs.html'));
  assert.equal(longPath, 'bower_components/app-layout/docs.html');
  });
  +
  + test('will properly encode URL-unfriendly characters like spaces', () => {
  + const url = urlFromPath(RootPath, pathJoin(RootPath, 'spaced out'));
  + assert.equal(url, 'spaced%20out');
  + });
  });
  