From d054b22417017cefe021636d9fab5c2192dc8bc5 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Tue, 24 Jun 2014 13:56:56 -0400 Subject: [PATCH] moving get(localhost) call to before first it statement. removing extra done function call --- specs/test-spec.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specs/test-spec.js b/specs/test-spec.js index d95892b..d05693f 100644 --- a/specs/test-spec.js +++ b/specs/test-spec.js @@ -7,8 +7,8 @@ var driver = new webdriver.Builder(). build(); describe('Main page', function () { + driver.get('http://localhost:9001/'); it('should have title of Test Title', function (done) { - driver.get('http://localhost:9001/'); driver.getTitle().then(function(title) { expect(title).toBe('Test Title'); }); @@ -27,7 +27,6 @@ describe('Main page', function () { driver.executeScript("return window.__coverage__;").then(function (obj) { fs.writeFile('coverage/coverage.json', JSON.stringify(obj)); driver.quit(); - done(); }); }); }); \ No newline at end of file