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

Commit 18ca53cd by Felix Becker

Fix lint issues

1 parent 2fbf399c
...@@ -241,9 +241,9 @@ describe(Support.getTestDialectTeaser('Model'), function() { ...@@ -241,9 +241,9 @@ describe(Support.getTestDialectTeaser('Model'), function() {
it('increment should work', function() { it('increment should work', function() {
return this.Comment.destroy({ truncate: true }) return this.Comment.destroy({ truncate: true })
.then(() => this.Comment.create({ note: 'oh boy, here I go again', likes: 23 })) .then(() => this.Comment.create({ note: 'oh boy, here I go again', likes: 23 }))
.then((comment) => comment.increment('likes')) .then(comment => comment.increment('likes'))
.then((comment) => comment.reload()) .then(comment => comment.reload())
.then((comment) => { .then(comment => {
expect(comment.likes).to.be.equal(24); expect(comment.likes).to.be.equal(24);
}); });
}); });
...@@ -251,9 +251,9 @@ describe(Support.getTestDialectTeaser('Model'), function() { ...@@ -251,9 +251,9 @@ describe(Support.getTestDialectTeaser('Model'), function() {
it('decrement should work', function() { it('decrement should work', function() {
return this.Comment.destroy({ truncate: true }) return this.Comment.destroy({ truncate: true })
.then(() => this.Comment.create({ note: 'oh boy, here I go again', likes: 23 })) .then(() => this.Comment.create({ note: 'oh boy, here I go again', likes: 23 }))
.then((comment) => comment.decrement('likes')) .then(comment => comment.decrement('likes'))
.then((comment) => comment.reload()) .then(comment => comment.reload())
.then((comment) => { .then(comment => {
expect(comment.likes).to.be.equal(22); expect(comment.likes).to.be.equal(22);
}); });
}); });
...@@ -262,7 +262,7 @@ describe(Support.getTestDialectTeaser('Model'), function() { ...@@ -262,7 +262,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
return this.Comment.destroy({ truncate: true }) return this.Comment.destroy({ truncate: true })
.then(() => this.Comment.create({ note: 'oh boy, here I go again', likes: 23 })) .then(() => this.Comment.create({ note: 'oh boy, here I go again', likes: 23 }))
.then(() => this.Comment.sum('likes')) .then(() => this.Comment.sum('likes'))
.then((likes) => { .then(likes => {
expect(likes).to.be.equal(23); expect(likes).to.be.equal(23);
}); });
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!