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

Commit 6a9c8509 by Jan Aagaard Meier

Fix small spelling mistake in pull 829

1 parent d0fd6e2f
Showing with 6 additions and 6 deletions
...@@ -112,7 +112,7 @@ SqlString.formatNamedParameters = function(sql, values, timeZone, dialect) { ...@@ -112,7 +112,7 @@ SqlString.formatNamedParameters = function(sql, values, timeZone, dialect) {
return SqlString.escape(values[key], false, timeZone, dialect); return SqlString.escape(values[key], false, timeZone, dialect);
} }
else { else {
throw new Error('Named parameter "' + value + '" as no value in the given object.'); throw new Error('Named parameter "' + value + '" has no value in the given object.');
} }
}); });
}; };
......
...@@ -202,7 +202,7 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () { ...@@ -202,7 +202,7 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () {
var self = this var self = this
expect(function() { expect(function() {
self.sequelize.query('select :one as foo, :two as bar, :three as baz', null, { raw: true }, { one: 1, two: 2 }) self.sequelize.query('select :one as foo, :two as bar, :three as baz', null, { raw: true }, { one: 1, two: 2 })
}).to.throw(Error, /Named parameter ":\w+" as no value in the given object\./g) }).to.throw(Error, /Named parameter ":\w+" has no value in the given object\./g)
done() done()
}) })
...@@ -210,7 +210,7 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () { ...@@ -210,7 +210,7 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () {
var self = this var self = this
expect(function() { expect(function() {
self.sequelize.query('select :one as foo, :two as bar', null, { raw: true }, 2) self.sequelize.query('select :one as foo, :two as bar', null, { raw: true }, 2)
}).to.throw(Error, /Named parameter ":\w+" as no value in the given object\./g) }).to.throw(Error, /Named parameter ":\w+" has no value in the given object\./g)
done() done()
}) })
...@@ -218,7 +218,7 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () { ...@@ -218,7 +218,7 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () {
var self = this var self = this
expect(function() { expect(function() {
self.sequelize.query('select :one as foo, :two as bar', null, { raw: true }, {}) self.sequelize.query('select :one as foo, :two as bar', null, { raw: true }, {})
}).to.throw(Error, /Named parameter ":\w+" as no value in the given object\./g) }).to.throw(Error, /Named parameter ":\w+" has no value in the given object\./g)
done() done()
}) })
...@@ -226,7 +226,7 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () { ...@@ -226,7 +226,7 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () {
var self = this var self = this
expect(function() { expect(function() {
self.sequelize.query('select :one as foo, :two as bar', null, { raw: true }, 'foobar') self.sequelize.query('select :one as foo, :two as bar', null, { raw: true }, 'foobar')
}).to.throw(Error, /Named parameter ":\w+" as no value in the given object\./g) }).to.throw(Error, /Named parameter ":\w+" has no value in the given object\./g)
done() done()
}) })
...@@ -234,7 +234,7 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () { ...@@ -234,7 +234,7 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () {
var self = this var self = this
expect(function() { expect(function() {
self.sequelize.query('select :one as foo, :two as bar', null, { raw: true }, new Date()) self.sequelize.query('select :one as foo, :two as bar', null, { raw: true }, new Date())
}).to.throw(Error, /Named parameter ":\w+" as no value in the given object\./g) }).to.throw(Error, /Named parameter ":\w+" has no value in the given object\./g)
done() done()
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!