From ce532ed81b7550a7e3ddae019a7deb30d7245a40 Mon Sep 17 00:00:00 2001 From: Mohsen Azimi Date: Fri, 30 Jan 2015 15:25:12 -0800 Subject: [PATCH] Take out `checkConsoleErrors` from inside title check `it` inside another `it` will not get executed. --- src/test/e2e/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/e2e/index.js b/src/test/e2e/index.js index 93496809..2af18f0d 100644 --- a/src/test/e2e/index.js +++ b/src/test/e2e/index.js @@ -61,13 +61,14 @@ describe('basics', function (done) { if (hasTitle) { expect(title).to.contain('Swagger UI'); - checkConsoleErrors(); done(); } return hasTitle; }); }, 1000); }); + + checkConsoleErrors(); }); describe('cleanup', function () {