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

Commit bc3094a8 by Mick Hansen

remove bad tests

1 parent 5ffb9cc4
Showing with 0 additions and 43 deletions
......@@ -20,18 +20,6 @@ describe(Support.getTestDialectTeaser("Transaction"), function () {
})
})
describe('success', function() {
it("is a success method available", function() {
expect(Transaction).to.respondTo("success")
})
})
describe('error', function() {
it("is an error method available", function() {
expect(Transaction).to.respondTo("error")
})
})
describe('commit', function() {
it('is a commit method available', function() {
expect(Transaction).to.respondTo('commit')
......@@ -44,37 +32,6 @@ describe(Support.getTestDialectTeaser("Transaction"), function () {
})
})
describe('done', function() {
it('gets called when the transaction gets commited', function(done) {
var transaction = new Transaction(this.sequelize)
transaction.done(done)
transaction.prepareEnvironment(function() {
transaction.commit()
})
})
it('works for long running transactions', function(done) {
var transaction = new Transaction(this.sequelize)
, self = this
transaction.done(done)
transaction.prepareEnvironment(function() {
setTimeout(function() {
self.sequelize.query('select 1+1 as sum', null, {
raw: true,
plain: true,
transaction: transaction
}).done(function(err, result) {
expect(err).to.be.null
expect(result.sum).to.equal(2)
transaction.commit()
})
}, 2000)
})
})
})
if (dialect !== 'sqlite') {
describe('row locking', function () {
this.timeout(10000);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!