aboutsummaryrefslogtreecommitdiffstats
path: root/test/scenario/SpecRunnerSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-10-15 13:44:53 -0700
committerMisko Hevery2010-10-15 13:44:53 -0700
commita36964799be3d21163ba6350d862fced2bbd3437 (patch)
tree8c703eb9b19541c25c4e1105e511426a646c9c4d /test/scenario/SpecRunnerSpec.js
parentd320e3d2c3b72896603a3df3abd26adc0bfa3c10 (diff)
downloadangular.js-a36964799be3d21163ba6350d862fced2bbd3437.tar.bz2
fixed lint warnings and one flaky test
Diffstat (limited to 'test/scenario/SpecRunnerSpec.js')
-rw-r--r--test/scenario/SpecRunnerSpec.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/scenario/SpecRunnerSpec.js b/test/scenario/SpecRunnerSpec.js
index 81b66956..0926c3f8 100644
--- a/test/scenario/SpecRunnerSpec.js
+++ b/test/scenario/SpecRunnerSpec.js
@@ -30,8 +30,8 @@ UIMock.prototype = {
log.push('spec error:' + (e ? e : ''));
return this;
}
- };
- },
+ };
+ }
};
/**
@@ -56,7 +56,7 @@ describe('angular.scenario.SpecRunner', function() {
runner.application = new ApplicationMock($window);
runner.$become(angular.scenario.SpecRunner);
});
-
+
it('should bind futures to the spec', function() {
runner.addFuture('test future', function(done) {
this.application.value = 10;
@@ -65,7 +65,7 @@ describe('angular.scenario.SpecRunner', function() {
runner.futures[0].execute(angular.noop);
expect(runner.application.value).toEqual(10);
});
-
+
it('should pass done to future action behavior', function() {
runner.addFutureAction('test future', function(done) {
expect(angular.isFunction(done)).toBeTruthy();
@@ -76,7 +76,7 @@ describe('angular.scenario.SpecRunner', function() {
expect(result).toEqual(20);
});
});
-
+
it('should pass execute future action on the $window', function() {
runner.addFutureAction('test future', function(done) {
this.test = 'test value';
@@ -123,7 +123,7 @@ describe('angular.scenario.SpecRunner', function() {
'spec error:message'
]);
});
-
+
it('should execute notify UI on step failure', function() {
var finished = false;
var ui = new UIMock();