moved testResults declaration to assert.js
Showing
2 changed files
with
6 additions
and
4 deletions
... | @@ -3,10 +3,7 @@ phantom.injectJs('tests/assert.js'); | ... | @@ -3,10 +3,7 @@ phantom.injectJs('tests/assert.js'); |
3 | 3 | ||
4 | var casper = new phantom.Casper({ | 4 | var casper = new phantom.Casper({ |
5 | verbose: true, | 5 | verbose: true, |
6 | }), testResults = { | 6 | }); |
7 | passed: 0, | ||
8 | failed: 0 | ||
9 | }; | ||
10 | 7 | ||
11 | casper.start('tests/site/index.html', function(self) { | 8 | casper.start('tests/site/index.html', function(self) { |
12 | self.assertEvalEquals(function() { | 9 | self.assertEvalEquals(function() { | ... | ... |
-
Please register or sign in to post a comment