dwf/rva: Added examples, fixed bug with initializing currentSuite with a mock.
This commit is contained in:
4
test/bootstrap.js
vendored
4
test/bootstrap.js
vendored
@@ -91,6 +91,8 @@ var testMatchersReporting = function () {
|
||||
}
|
||||
|
||||
var testSpecs = function () {
|
||||
var currentSuite = describe('default current suite', function() {});
|
||||
|
||||
var spec = it('new spec');
|
||||
reporter.test((spec.description == 'new spec'),
|
||||
"Spec did not have a description");
|
||||
@@ -508,7 +510,7 @@ var testRunner = function() {
|
||||
it('should be a test');
|
||||
});
|
||||
reporter.test((runner.suites.length === 2),
|
||||
"Runner expected two suites");
|
||||
"Runner expected two suites, but got " + runner.suites.length);
|
||||
|
||||
runner = Runner();
|
||||
describe('one suite description', function () {
|
||||
|
||||
Reference in New Issue
Block a user