carl/bosh - fixed PrettyPrinter

This commit is contained in:
pivotal 2009-07-28 17:57:29 -07:00
parent 4cfb7ddd42
commit 1da0c1c890
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ jasmine.PrettyPrinter.prototype.format = function(value) {
} else if (value instanceof jasmine.Matchers.Any) {
this.emitScalar(value.toString());
} else if (typeof value === 'string') {
this.emitScalar(value);
this.emitScalar("'" + value + "'");
} else if (typeof value === 'function') {
this.emitScalar('Function');
} else if (typeof value.nodeType === 'number') {