Last commit did not include self-test with Any and ObjectContaining in separate files. Fixed.

This commit is contained in:
Davis W. Frank
2013-06-02 22:16:30 -07:00
parent 475aacbfbb
commit 3271dc8838
7 changed files with 627 additions and 460 deletions

View File

@@ -326,7 +326,7 @@ getJasmineRequireObj().Env = function(j$) {
// TODO: move this to closure
Env.prototype.pending = function() {
throw new Error(j$.Spec.pendingSpecExceptionMessage);
throw j$.Spec.pendingSpecExceptionMessage;
};
// TODO: Still needed?

View File

@@ -29,4 +29,4 @@ getJasmineRequireObj().ObjectContaining = function(j$) {
};
return ObjectContaining;
};
};

View File

@@ -48,11 +48,11 @@ getJasmineRequireObj().base = function(j$) {
};
j$.any = function(clazz) {
return new j$.Matchers.Any(clazz);
return new j$.Any(clazz);
};
j$.objectContaining = function(sample) {
return new j$.Matchers.ObjectContaining(sample);
return new j$.ObjectContaining(sample);
};
j$.Spy = function(name) {
@@ -128,7 +128,7 @@ getJasmineRequireObj().base = function(j$) {
j$.createSpyObj = function(baseName, methodNames) {
if (!j$.isArray_(methodNames) || methodNames.length === 0) {
throw new Error('createSpyObj requires a non-empty array of method names to create spies for');
throw "createSpyObj requires a non-empty array of method names to create spies for";
}
var obj = {};
for (var i = 0; i < methodNames.length; i++) {