message: load tests as well
diff: @@ -77,21 +77,24 @@ describe("Suite model", () => {
  expect(suite instanceof Suite).toBeTruthy();
  });
  it("should load tests from JS", () => {
  - const jsRep = {
  - id: "1",
  - name: "test suite",
  - tests: [
  + const projectTests = [
  {
  id: "2",
  - name: "first test"
  + name: "first test",
  + commands: []
  },
  {
  id: "3",
  - name: "second test"
  + name: "second test",
  + commands: []
  }
  - ]
  + ];
  + const jsRep = {
  + id: "1",
  + name: "test suite",
  + tests: ["2", "3"]
  };
  - const suite = Suite.fromJS(jsRep);
  + const suite = Suite.fromJS(jsRep, projectTests);
  expect(suite.tests.length).toBe(2);
  expect(suite.tests[0] instanceof TestCase).toBeTruthy();
  });
  