Integration specs that actually execute a suite need to be async

This commit is contained in:
Gregg Van Hove
2017-08-09 11:51:26 -07:00
parent af41e5ea5c
commit 2588b442e6

View File

@@ -786,7 +786,7 @@ describe("Env integration", function() {
env.execute();
});
it('can be configured to allow respying on functions', function () {
it('can be configured to allow respying on functions', function (done) {
var env = new jasmineUnderTest.Env(),
foo = {
bar: function () {
@@ -795,6 +795,7 @@ describe("Env integration", function() {
};
env.allowRespy(true);
env.addReporter({ jasmineDone: done });
env.describe('test suite', function(){
env.it('spec 0', function(){