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

fix faulty test case that created relation circular ref

1 parent ba5a3dca
Showing with 1 additions and 2 deletions
......@@ -477,7 +477,6 @@ describe(Support.getTestDialectTeaser("DaoValidator"), function() {
describe('Pass all paths when validating', function() {
beforeEach(function(done) {
var self = this
var Project = this.sequelize.define('Project', {
name: {
type: Sequelize.STRING,
......@@ -502,7 +501,7 @@ describe(Support.getTestDialectTeaser("DaoValidator"), function() {
})
Project.hasOne(Task)
Task.hasOne(Project)
Task.belongsTo(Project)
Project.sync({ force: true }).success(function() {
Task.sync({ force: true }).success(function() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!