message: improved url migration
diff: @@ -20,8 +20,7 @@ import xmlescape from "xml-escape";
  import JSZip from "jszip";
  export function migrateProject(zippedData) {
  - return new Promise((res, rej) => {
  - JSZip.loadAsync(zippedData).then(zip => {
  + return JSZip.loadAsync(zippedData).then(zip => {
  const isHidden = /(^\.|\/\.)/;
  const isHTML = /\.html$/;
  const files = zip.filter((relativePath, file) => (
  @@ -29,11 +28,12 @@ export function migrateProject(zippedData) {
  ));
  const fileMap = {};
  const project = {
  + url: "",
  urls: [],
  tests: [],
  suites: []
  };
  - Promise.all(files.map(file => (
  + return Promise.all(files.map(file => (
  file.async("string").then(data => {
  fileMap[file.name] = data;
  })
  @@ -43,9 +43,8 @@ export function migrateProject(zippedData) {
  )).forEach(suite => {
  migrateSuite(suite, fileMap, project);
  });
  - res(project);
  - }).catch(rej);
  - }).catch(rej);
  + return project;
  + });
  });
  }
  @@ -67,9 +66,10 @@ function migrateSuite(suite, fileMap, project) {
  const parsedTestCase = migrateTestCase(fileMap[testCaseName]);
  parsedTestCase.tests[0].id = testCaseName;
  project.tests.push(parsedTestCase.tests[0]);
  - project.urls.push(parsedTestCase.urls[0]);
  + project.urls = [...project.urls, ...parsedTestCase.urls];
  }
  - project.suites[0].tests.push(testCaseName);
  + parsedSuite.tests.push(testCaseName);
  + project.name = parsedSuite.name;
  }
  });
  }
  