Permalink
Browse files

Remove deprecation in tests. Still not sure what's up with travis.

  • Loading branch information...
1 parent 912f52b commit ded74ff11f4a3ab8453673253fcd7781e6a93d40 @richtera richtera committed Sep 6, 2012
Showing with 2 additions and 4 deletions.
  1. +0 −2 lib/calipso.js
  2. +1 −1 test/config.test.js
  3. +1 −1 test/lib.core.configuration.js
View
@@ -38,9 +38,7 @@ var calipso = module.exports = {
loadCore(calipso);
function loadCore(calipso) {
-console.log(__dirname);
fs.readdirSync(__dirname + '/core').forEach(function(library) {
- console.log(__dirname, library);
var isLibrary = library.split(".").length > 0 && library.split(".")[1] === 'js',
libName = library.split(".")[0].toLowerCase();
if (isLibrary) calipso[libName] = require(__dirname + '/core/' + library);
View
@@ -9,7 +9,7 @@ var rootpath = process.cwd() + '/',
exec = require('child_process').exec,
path = require('path'),
assert = require('assert'),
- sys = require('sys'),
+ sys = require(/^v0\.[012]/.test(process.version) ? "sys" : "util"),
should = require('should'),
Config = require('./helpers/require')('core/Configuration');
@@ -89,7 +89,7 @@ describe('Configuration', function(){
confTest.set('test:v1','v1');
confTest.get('test:v1').should.equal('v1');
confTest.save(function(err) {
- path.existsSync(confTest.file);
+ (fs.existsSync || path.existsSync)(confTest.file);
done();
});
});

0 comments on commit ded74ff

Please sign in to comment.