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

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) {
return SqlString.escape(values[key], false, timeZone, dialect);
}
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 () {
var self = this
expect(function() {
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()
})
......@@ -210,7 +210,7 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () {
var self = this
expect(function() {
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()
})
......@@ -218,7 +218,7 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () {
var self = this
expect(function() {
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()
})
......@@ -226,7 +226,7 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () {
var self = this
expect(function() {
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()
})
......@@ -234,7 +234,7 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () {
var self = this
expect(function() {
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()
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!