不要怂,就是干,撸起袖子干!

Commit b3d63fd9 by sdepold

new paths of config

1 parent a958363a
var config = module.exports
config["node tests"] = {
environment: "node",
rootPath: ".",
tests: [
"spec/**/*.spec.js"
]
}
if(typeof require === 'function') {
const buster = require("buster")
, Sequelize = require("../index")
, config = require("./config")
, config = require("./config/config")
, dialects = ['sqlite', 'mysql', 'postgres']
}
......@@ -50,5 +50,15 @@ dialects.forEach(function(dialect) {
})
})
})
describe('complete', function() {
it("gets triggered if an error occurs", function(done) {
this.User.find({ where: "asdasdasd" }).complete(function(err, result) {
expect(err).toBeDefined()
expect(err.message).toBeDefined()
done()
})
})
})
})
})
if(typeof require === 'function') {
const buster = require("buster")
, Sequelize = require("../../index")
, config = require("../config")
, config = require("../config/config")
}
buster.spec.expose()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!