Commit 356b6c9a authored by Sergey Volkov's avatar Sergey Volkov
Browse files

Fix binary parser test


Signed-off-by: default avatarSergey Volkov <s.volkov@netris.ru>
parent 246b495e
......@@ -49,10 +49,8 @@ describe('Parser.Binary', () => {
expect(entry.date).to.be.an.instanceOf(Date)
expect(entry.date.getFullYear()).to.equal(2013)
expect(entry.date.getMonth()).to.equal(4)
expect(entry.date.getDate()).to.equal(12)
expect(entry.date.getHours()).to.equal(16)
expect(entry.date.getMinutes()).to.equal(5)
expect(entry.date.getSeconds()).to.equal(25)
// Date type in JavaScript includes timezone. It is not reliable to compare day/hours/minutes
expect(entry.date.toISOString()).to.equal('2013-05-12T16:05:25.686Z');
expect(entry.date.getMilliseconds()).to.equal(686)
expect(entry.pid).to.equal(26642)
expect(entry.tid).to.equal(26676)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment