Take out checkConsoleErrors from inside title check

`it` inside another `it` will not get executed.
This commit is contained in:
Mohsen Azimi
2015-01-30 15:25:12 -08:00
parent 3b6e24ec1d
commit ce532ed81b

View File

@@ -61,13 +61,14 @@ describe('basics', function (done) {
if (hasTitle) { if (hasTitle) {
expect(title).to.contain('Swagger UI'); expect(title).to.contain('Swagger UI');
checkConsoleErrors();
done(); done();
} }
return hasTitle; return hasTitle;
}); });
}, 1000); }, 1000);
}); });
checkConsoleErrors();
}); });
describe('cleanup', function () { describe('cleanup', function () {