Skip to content

Commit

Permalink
Remove deprecated use of new Buffer().
Browse files Browse the repository at this point in the history
  • Loading branch information
rolftimmermans committed Jul 9, 2018
1 parent 1d47637 commit f59b5bd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/integration.js
Expand Up @@ -33,8 +33,8 @@ describe("client integration", function() {
assert.isBelow(size, 1500)

/* width == 137 */
assert.include(contents, new Buffer([0, 0, 0, 0x89]).toString("hex"))
assert.notInclude(contents, new Buffer("Copyright Voormedia").toString("hex"))
assert.include(contents, Buffer.from([0, 0, 0, 0x89]).toString("hex"))
assert.notInclude(contents, Buffer.from("Copyright Voormedia").toString("hex"))
})
})

Expand All @@ -49,8 +49,8 @@ describe("client integration", function() {
assert.isBelow(size, 1500)

/* width == 137 */
assert.include(contents, new Buffer([0, 0, 0, 0x89]).toString("hex"))
assert.notInclude(contents, new Buffer("Copyright Voormedia").toString("hex"))
assert.include(contents, Buffer.from([0, 0, 0, 0x89]).toString("hex"))
assert.notInclude(contents, Buffer.from("Copyright Voormedia").toString("hex"))
})
})

Expand All @@ -64,8 +64,8 @@ describe("client integration", function() {
assert.isBelow(size, 1000)

/* width == 50 */
assert.include(contents, new Buffer([0, 0, 0, 0x32]).toString("hex"))
assert.notInclude(contents, new Buffer("Copyright Voormedia").toString("hex"))
assert.include(contents, Buffer.from([0, 0, 0, 0x32]).toString("hex"))
assert.notInclude(contents, Buffer.from("Copyright Voormedia").toString("hex"))
})
})

Expand All @@ -79,8 +79,8 @@ describe("client integration", function() {
assert.isBelow(size, 2000)

/* width == 137 */
assert.include(contents, new Buffer([0, 0, 0, 0x89]).toString("hex"))
assert.include(contents, new Buffer("Copyright Voormedia").toString("hex"))
assert.include(contents, Buffer.from([0, 0, 0, 0x89]).toString("hex"))
assert.include(contents, Buffer.from("Copyright Voormedia").toString("hex"))
})
})
})

0 comments on commit f59b5bd

Please sign in to comment.