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

Commit d85e1803 by Jonatan Männchen

Cleanup Test

1 parent 02fc6b71
Showing with 5 additions and 17 deletions
...@@ -440,12 +440,8 @@ describe(Support.getTestDialectTeaser('Sequelize'), function() { ...@@ -440,12 +440,8 @@ describe(Support.getTestDialectTeaser('Sequelize'), function() {
'overrideInstanceMethod': function() {} 'overrideInstanceMethod': function() {}
}, },
'setterMethods': { 'setterMethods': {
'default': function() { 'default': function() {},
this.defaultVal = 'default'; 'override': function() {},
},
'override': function() {
this.overrideVal = 'default';
},
}, },
'getterMethods': { 'getterMethods': {
'default': function() { 'default': function() {
...@@ -456,11 +452,7 @@ describe(Support.getTestDialectTeaser('Sequelize'), function() { ...@@ -456,11 +452,7 @@ describe(Support.getTestDialectTeaser('Sequelize'), function() {
} }
} }
}; };
var testEntity = this.sequelize.define('TestEntity', { var testEntity = this.sequelize.define('TestEntity', {}, {
'defaultVal': Sequelize.STRING(50),
'customVal': Sequelize.STRING(50),
'overrideVal': Sequelize.STRING(50)
}, {
'classMethods': { 'classMethods': {
'customClassMethod': function() {}, 'customClassMethod': function() {},
'overrideClassMethod': overrideFunction 'overrideClassMethod': overrideFunction
...@@ -470,12 +462,8 @@ describe(Support.getTestDialectTeaser('Sequelize'), function() { ...@@ -470,12 +462,8 @@ describe(Support.getTestDialectTeaser('Sequelize'), function() {
'overrideInstanceMethod': overrideFunction 'overrideInstanceMethod': overrideFunction
}, },
'setterMethods': { 'setterMethods': {
'custom': function() { 'custom': function() {},
this.customVal = 'custom'; 'override': function() {}
},
'override': function() {
this.overrideVal = 'default';
},
}, },
'getterMethods': { 'getterMethods': {
'custom': function() { 'custom': function() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!