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

Commit 8c96811c by Yoni Jah

fixed test to handle postgres returning strings instead of binary data

1 parent 6058ad79
Showing with 3 additions and 0 deletions
...@@ -407,6 +407,9 @@ describe(Support.getTestDialectTeaser('Sequelize'), function() { ...@@ -407,6 +407,9 @@ describe(Support.getTestDialectTeaser('Sequelize'), function() {
var res = result[0] || {}; var res = result[0] || {};
res.date = res.date && new Date(res.date); res.date = res.date && new Date(res.date);
res.boolean = res.boolean && true; res.boolean = res.boolean && true;
if (typeof res.buffer === 'string' && res.buffer.indexOf('\\x') === 0) {
res.buffer = new Buffer(res.buffer.substring(2), 'hex');
}
expect(res).to.deep.equal({ expect(res).to.deep.equal({
number : number, number : number,
date : date, date : date,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!