Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 8c96811c
authored
Feb 11, 2016
by
Yoni Jah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed test to handle postgres returning strings instead of binary data
1 parent
6058ad79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
test/integration/sequelize.test.js
test/integration/sequelize.test.js
View file @
8c96811
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment