Skip to content
Myr

Patched JSpec to work with nodes apis

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 35e2f6b · Browse files · 1 file+8 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−3 removed

  • tests:+8 added−3 removed

1 file+8 added−3 removed

modified:spec/lib/jspec.js+8 added-3 removed
202 unmodified lines
203 print("")204 }205 })206 207 quit(results.stats.failures)207 var promise = new process.Promise208 results.stats.failures == 0 ?209 promise.emitSuccess("", "") :210 promise.emitError(results.stats.failures, "")211 },212213 /**214 * Console formatter.
1391 unmodified lines
16061607 load : function(file, callback) {1608 if (any(hook('loading', file), haveStopped)) return1609 if ('readFile' in main)1607 return readFile(file)1610 return readFile(file, callback)1611 else if (this.hasXhr()) {1612 var request = this.xhr()1613 request.open('GET', file, false)1614 request.send(null)
15 unmodified lines
1630 */16311632 exec : function(file) {1633 if (any(hook('executing', file), haveStopped)) return this1631 eval('with (JSpec){' + this.preprocess(this.load(file)) + '}')1634 this.load(file, function(contents){1635 eval('with (JSpec){' + JSpec.preprocess(contents) + '}')1636 })1637 return this1638 }1639 }1640
141 unmodified lines