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

Commit d6f936e4 by Sohum Banerjea

making the test fit both mysql (which returns binary strings) and postgres (which returns Buffers)

1 parent 99d0adc3
Showing with 2 additions and 2 deletions
...@@ -274,8 +274,8 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () { ...@@ -274,8 +274,8 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
expect(_binaryRetrieved.id).to.be.an.instanceof.string expect(_binaryRetrieved.id).to.be.an.instanceof.string
expect(binaryRetrieved.id).to.have.length(16) expect(binaryRetrieved.id).to.have.length(16)
expect(_binaryRetrieved.id).to.have.length(16) expect(_binaryRetrieved.id).to.have.length(16)
expect(binaryRetrieved.id).to.be.equal(buf1.toString()) expect(binaryRetrieved.id.toString()).to.be.equal(buf1.toString())
expect(_binaryRetrieved.id).to.be.equal(buf2.toString()) expect(_binaryRetrieved.id.toString()).to.be.equal(buf2.toString())
done() done()
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!