dwf/rva - moved should_be_defined() into Jasmine from Tweed
This commit is contained in:
@@ -205,6 +205,11 @@ Jasmine.Matchers.method('should_match', function (reg_exp) {
|
||||
'Expected ' + this.actual + ' to match ' + reg_exp + '.');
|
||||
});
|
||||
|
||||
Jasmine.Matchers.method('should_be_defined', function () {
|
||||
return this.report((this.actual !== undefined),
|
||||
'Expected ' + this.actual + ' to be defined.');
|
||||
});
|
||||
|
||||
/*
|
||||
* Jasmine spec constructor
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user