Permalink
Browse files

[test][fix] Correctly read the included configuration

  • Loading branch information...
1 parent b0bbc4a commit 3d0cd09eddd14ab8ba96a9aedc6f74e81f5b69fc @3rd-Eden committed Mar 25, 2013
Showing with 14 additions and 1 deletion.
  1. +2 −1 package.json
  2. +6 −0 test/server.test.js
  3. +6 −0 versions.js
View
@@ -37,6 +37,7 @@
"mocha": "1.8.x",
"redis": "0.8.x",
"sinon": "1.6.x",
- "sinon-chai": "2.3.x"
+ "sinon-chai": "2.3.x",
+ "versions": "git://github.com/3rd-Eden/versions.git"
}
}
View
@@ -97,6 +97,12 @@ describe('versions()', function () {
versions.read(path.resolve(__dirname, './fixtures/extra.js'));
expect(versions.get('plain')).to.equal('javascript');
});
+
+ it('reads the configuration from the root folder', function () {
+ var version = require('versions');
+
+ expect(version.get('auth')).to.equal('foo');
+ });
});
describe("#clone", function () {
View
@@ -0,0 +1,6 @@
+'use strict';
+
+module.exports = {
+ "auth": "foo",
+ "version": "0.0.0"
+};

0 comments on commit 3d0cd09

Please sign in to comment.