Take out checkConsoleErrors from inside title check
`it` inside another `it` will not get executed.
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user