Skip to content
Browse files

Driver: changeable root dir (for future test purposes).

  • Loading branch information...
1 parent b6b5e3c commit bc7c022399f7c0231f7b63367958255e1736788b @espadrine committed Jul 8, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/driver.js
View
6 lib/driver.js
@@ -11,6 +11,10 @@ var cwd = process.cwd(),
root = path.join(cwd, rootDir),
metaRoot = path.join(cwd, 'meta');
+function changeRootDir(newDir) {
+ rootDir = newDir;
+}
+
// Switch between virtual and disk paths
@@ -158,6 +162,8 @@ primitives['text/plain'] = {
// Exports
+exports.changeRootDir = changeRootDir;
+
exports.primitives = primitives;
exports.normalize = normalize;
exports.absolute = absolute;

0 comments on commit bc7c022

Please sign in to comment.
Something went wrong with that request. Please try again.