Permalink
Browse files

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

  • Loading branch information...
1 parent b7257b8 commit d0c10caf5af9e4e0826caace3e81533a2fdb72ba @kusor kusor committed Nov 17, 2011
Showing with 29 additions and 29 deletions.
  1. +1 −1 bin/tap-http.js
  2. +2 −2 bin/tap.js
  3. +7 −7 lib/main.js
  4. +3 −3 lib/tap-browser-harness.js
  5. +1 −1 lib/tap-consumer.js
  6. +3 −3 lib/tap-global-harness.js
  7. +3 −3 lib/tap-harness.js
  8. +1 −1 lib/tap-producer.js
  9. +3 −3 lib/tap-runner.js
  10. +3 −3 lib/tap-test.js
  11. +2 −2 test/test-test.js
View
@@ -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
@@ -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
@@ -1,16 +1,16 @@
-var GlobalHarness = require("tap-global-harness")
+var GlobalHarness = require("./tap-global-harness")
// this lets you do stuff like:
// var test = require("tap").test
// test(...)
// 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")
@@ -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
@@ -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) {
@@ -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
@@ -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
@@ -1,6 +1,6 @@
module.exports = TapProducer
-var Results = require("tap-results")
+var Results = require("./tap-results")
, inherits = require("inherits")
, yamlish = require("yamlish")
View
@@ -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
@@ -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
@@ -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) {

0 comments on commit d0c10ca

Please sign in to comment.