Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

GH-18: Modified some requires to work with files instead of modules.

  • Loading branch information...
commit d0c10caf5af9e4e0826caace3e81533a2fdb72ba 1 parent b7257b8
@kusor kusor authored
View
2  bin/tap-http.js
@@ -5,7 +5,7 @@
var argv = process.argv.slice(2)
, path = require("path")
- , Runner = require("tap-runner")
+ , Runner = require("../lib/tap-runner")
, http = require("http")
, server = http.createServer(function (req, res) {
View
4 bin/tap.js
@@ -2,9 +2,9 @@
var argv = process.argv.slice(2)
, path = require("path")
- , Runner = require("tap-runner")
+ , Runner = require("../lib/tap-runner")
, r = new Runner(argv, null)
- , TapProducer = require("tap-producer")
+ , TapProducer = require("../lib/tap-producer")
if (process.env.TAP || process.env.TAP_DIAG) {
r.pipe(process.stdout)
View
14 lib/main.js
@@ -1,5 +1,5 @@
-var GlobalHarness = require("tap-global-harness")
+var GlobalHarness = require("./tap-global-harness")
// this lets you do stuff like:
// var test = require("tap").test
@@ -7,10 +7,10 @@ var GlobalHarness = require("tap-global-harness")
// to run stuff in the global harness.
exports = module.exports = new GlobalHarness()
-exports.createProducer = exports.Producer = require("tap-producer")
-exports.createConsumer = exports.Consumer = require("tap-consumer")
+exports.createProducer = exports.Producer = require("./tap-producer")
+exports.createConsumer = exports.Consumer = require("./tap-consumer")
exports.yamlish = require("yamlish")
-exports.createTest = exports.Test = require("tap-test")
-exports.createHarness = exports.Harness = require("tap-harness")
-exports.createRunner = exports.Runner = require("tap-runner")
-exports.assert = require("tap-assert")
+exports.createTest = exports.Test = require("./tap-test")
+exports.createHarness = exports.Harness = require("./tap-harness")
+exports.createRunner = exports.Runner = require("./tap-runner")
+exports.assert = require("./tap-assert")
View
6 lib/tap-browser-harness.js
@@ -4,9 +4,9 @@ module.exports = BrowserHarness
var BrowserHarness = global.TAP_Browser_Harness
, inherits = require("inherits")
- , Results = require("tap-results")
- , Harness = require("tap-harness")
- , Test = require("tap-test")
+ , Results = require("./tap-results")
+ , Harness = require("./tap-harness")
+ , Test = require("./tap-test")
inherits(BrowserHarness, Harness)
function BrowserHarness (outPipe) {
View
2  lib/tap-consumer.js
@@ -5,7 +5,7 @@ module.exports = TapConsumer
// and an "end" event with the final results.
var yamlish = require("yamlish")
- , Results = require("tap-results")
+ , Results = require("./tap-results")
, inherits = require("inherits")
TapConsumer.decode = TapConsumer.parse = function (str) {
View
6 lib/tap-global-harness.js
@@ -4,9 +4,9 @@ module.exports = GlobalHarness
var globalHarness = global.TAP_Global_Harness
, inherits = require("inherits")
- , Results = require("tap-results")
- , Harness = require("tap-harness")
- , Test = require("tap-test")
+ , Results = require("./tap-results")
+ , Harness = require("./tap-harness")
+ , Test = require("./tap-test")
inherits(GlobalHarness, Harness)
function GlobalHarness () {
View
6 lib/tap-harness.js
@@ -11,9 +11,9 @@
module.exports = Harness
require("inherits")(Harness, require("events").EventEmitter)
-var Results = require("tap-results")
- , TapProducer = require("tap-producer")
- , assert = require("tap-assert")
+var Results = require("./tap-results")
+ , TapProducer = require("./tap-producer")
+ , assert = require("./tap-assert")
function Harness (Test) {
if (!(this instanceof Harness)) return new Harness(Test)
View
2  lib/tap-producer.js
@@ -1,6 +1,6 @@
module.exports = TapProducer
-var Results = require("tap-results")
+var Results = require("./tap-results")
, inherits = require("inherits")
, yamlish = require("yamlish")
View
6 lib/tap-runner.js
@@ -4,9 +4,9 @@ var fs = require("fs")
, child_process = require("child_process")
, path = require("path")
, chain = require("slide").chain
- , TapProducer = require("tap-producer")
- , TapConsumer = require("tap-consumer")
- , assert = require("tap-assert")
+ , TapProducer = require("./tap-producer")
+ , TapConsumer = require("./tap-consumer")
+ , assert = require("./tap-assert")
, inherits = require("inherits")
inherits(Runner, TapProducer)
View
6 lib/tap-test.js
@@ -3,12 +3,12 @@
module.exports = Test
-var assert = require("tap-assert")
+var assert = require("./tap-assert")
, inherits = require("inherits")
- , Results = require("tap-results")
+ , Results = require("./tap-results")
// tests are also test harnesses
-inherits(Test, require("tap-harness"))
+inherits(Test, require("./tap-harness"))
function Test (harness, name, conf) {
//console.error("test ctor")
View
4 test/test-test.js
@@ -1,7 +1,7 @@
var tap = require("../")
, test = tap.test
- , Test = require("tap-test")
- , Harness = require("tap-harness")
+ , Test = require("../lib/tap-test")
+ , Harness = require("../lib/tap-harness")
test("testing the test object", function (t) {
Please sign in to comment.
Something went wrong with that request. Please try again.