Skip to content

Commit

Permalink
moved source files
Browse files Browse the repository at this point in the history
  • Loading branch information
sdepold committed Nov 7, 2011
1 parent 0fbfa63 commit 0059418
Show file tree
Hide file tree
Showing 24 changed files with 9 additions and 75 deletions.
66 changes: 0 additions & 66 deletions examples/fetch-associations/app.js

This file was deleted.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("./lib/sequelize/sequelize")
module.exports = require("./lib/sequelize")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion spec/query-generator.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var config = require("./config/config")
, Sequelize = require("../index")
, sequelize = new Sequelize(config.database, config.username, config.password, { logging: false })
, Helpers = new (require("./config/helpers"))(sequelize)
, QueryGenerator = require("../lib/sequelize/query-generator")
, QueryGenerator = require("../lib/query-generator")

describe('QueryGenerator', function() {
beforeEach(function() { Helpers.sync() })
Expand Down
4 changes: 2 additions & 2 deletions test/Model/mixin.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
var assert = require("assert")
, ModelDefinition = require("./../../lib/sequelize/model-definition")
, ModelDefinition = require("./../../lib/model-definition")

module.exports = {
'mixin should be correctly added to the model': function() {
assert.isDefined(ModelDefinition.prototype.hasOne)
assert.isDefined(ModelDefinition.prototype.hasMany)
assert.isDefined(ModelDefinition.prototype.belongsTo)
}
}
}
2 changes: 1 addition & 1 deletion test/QueryGenerator/queries.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var assert = require("assert")
, QueryGenerator = require("../../lib/sequelize/query-generator")
, QueryGenerator = require("../../lib/query-generator")
, eql = assert.equal

module.exports = {
Expand Down
4 changes: 2 additions & 2 deletions test/Utils/argsArePrimaryKeys.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var assert = require("assert")
, Utils = require("../../lib/sequelize/utils")
, Utils = require("../../lib/utils")

module.exports = {
'it should be false if primaryKeys and args have different lengths': function() {
Expand All @@ -14,4 +14,4 @@ module.exports = {
'it should be true if primaryKeys are dates and lengths are matching': function() {
assert.eql(true, Utils.argsArePrimaryKeys([new Date()], ['foo']))
}
}
}
4 changes: 2 additions & 2 deletions test/Utils/underscore.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var assert = require("assert")
, Utils = require("../../lib/sequelize/utils")
, Utils = require("../../lib/utils")

module.exports = {
'underscoredIf should be defined': function() {
Expand All @@ -16,4 +16,4 @@ module.exports = {
assert.eql(Utils._.camelizeIf('foo_bar', false), 'foo_bar')
assert.eql(Utils._.camelizeIf('foo_bar', true), 'fooBar')
}
}
}

0 comments on commit 0059418

Please sign in to comment.