Skip to content

Commit

Permalink
removed unwanted test
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Sep 8, 2015
1 parent 83658e1 commit f39f707
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "iojs ./node_modules/mocha/bin/mocha --harmony_proxies test/implementation --bail"
"test": "iojs ./node_modules/mocha/bin/mocha --harmony_proxies test/implementation test/unit --bail"
},
"author": "",
"license": "ISC",
Expand Down
Binary file modified test/implementation/storage/blog.sqlite3
Binary file not shown.
23 changes: 0 additions & 23 deletions test/unit/model.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -602,29 +602,6 @@ describe('Model', function () {

})

it('should be able to forceDelete model instance even when soft delete is enabled', function (done) {

class User extends Model{

static get table(){
return 'users'
}
}

User = User.extend()

User
.find(1)
.then (function (user) {
let deleteQuery = user.forceDelete().toSQL()
expect(deleteQuery.sql).to.equal('delete from "users" where "id" = ?')
expect(deleteQuery.bindings).deep.equal([1])
done()
}).catch(done)


})

it('should add created_at and updated_at timestamps when timestamps are enabled', function () {

class User extends Model{
Expand Down
Binary file modified test/unit/storage/test.sqlite3
Binary file not shown.

0 comments on commit f39f707

Please sign in to comment.