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

Commit ef04446b by Jan Aagaard Meier

Remove lodash dep. in has-many spec

1 parent 3bada76c
Showing with 0 additions and 11 deletions
...@@ -3,7 +3,6 @@ if (typeof require === 'function') { ...@@ -3,7 +3,6 @@ if (typeof require === 'function') {
, Helpers = require('../buster-helpers') , Helpers = require('../buster-helpers')
, Sequelize = require('../../index') , Sequelize = require('../../index')
, dialect = Helpers.getTestDialect() , dialect = Helpers.getTestDialect()
, _ = require('lodash')
} }
buster.spec.expose() buster.spec.expose()
...@@ -33,8 +32,6 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() { ...@@ -33,8 +32,6 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() {
}) })
it('does not have any labels assigned to it initially', function(done) { it('does not have any labels assigned to it initially', function(done) {
var self = this
var chainer = new Sequelize.Utils.QueryChainer([ var chainer = new Sequelize.Utils.QueryChainer([
this.Article.create({ title: 'Article' }), this.Article.create({ title: 'Article' }),
this.Label.create({ text: 'Awesomeness' }), this.Label.create({ text: 'Awesomeness' }),
...@@ -56,8 +53,6 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() { ...@@ -56,8 +53,6 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() {
}) })
it('answers true if the label has been assigned', function(done) { it('answers true if the label has been assigned', function(done) {
var self = this
var chainer = new Sequelize.Utils.QueryChainer([ var chainer = new Sequelize.Utils.QueryChainer([
this.Article.create({ title: 'Article' }), this.Article.create({ title: 'Article' }),
this.Label.create({ text: 'Awesomeness' }), this.Label.create({ text: 'Awesomeness' }),
...@@ -91,8 +86,6 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() { ...@@ -91,8 +86,6 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() {
}) })
it('answers false if only some labels have been assigned', function(done) { it('answers false if only some labels have been assigned', function(done) {
var self = this
var chainer = new Sequelize.Utils.QueryChainer([ var chainer = new Sequelize.Utils.QueryChainer([
this.Article.create({ title: 'Article' }), this.Article.create({ title: 'Article' }),
this.Label.create({ text: 'Awesomeness' }), this.Label.create({ text: 'Awesomeness' }),
...@@ -110,8 +103,6 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() { ...@@ -110,8 +103,6 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() {
}) })
it('answers true if all label have been assigned', function(done) { it('answers true if all label have been assigned', function(done) {
var self = this
var chainer = new Sequelize.Utils.QueryChainer([ var chainer = new Sequelize.Utils.QueryChainer([
this.Article.create({ title: 'Article' }), this.Article.create({ title: 'Article' }),
this.Label.create({ text: 'Awesomeness' }), this.Label.create({ text: 'Awesomeness' }),
...@@ -568,5 +559,4 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() { ...@@ -568,5 +559,4 @@ describe(Helpers.getTestDialectTeaser("HasMany"), function() {
}) })
}) })
}) })
}) })
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!