Fix conditional loading of firebird test for travis-ci

This commit is contained in:
Timothy Warren 2014-11-04 12:52:02 -05:00
parent d554372912
commit 7ef2385da9

View File

@ -14,12 +14,6 @@ try {
var Firebird = require(adapterName);
var conn = null;
var qb = null;
} catch (e) {
// Export an empty testBase.testsuite if module not loaded
console.log(e);
console.log("Database adapter firebird not found");
module.exports = {};
}
// Setup testbase from the inside out
// Because the connection is async, utilize
@ -81,3 +75,10 @@ testBase.tests["firebird adapter with query builder"] = function(test) {
};
module.exports = testBase.tests;
} catch (e) {
// Export an empty testBase.testsuite if module not loaded
console.log(e);
console.log("Database adapter firebird not found");
module.exports = {};
}