aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/components
diff options
context:
space:
mode:
authorNoel Yoo <innovation.noel@gmail.com>2018-10-09 20:02:48 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-10-09 20:02:48 +0800
commitebdefe81a10595bb3341afa2ab0851c8269c19d8 (patch)
treebe37de2472f316ed8b5b00f297ed9c1a1a851e71 /test/unit/components
parent012f7ddd72659b7ca470054f81487bd87b480392 (diff)
downloadtangerine-wallet-browser-ebdefe81a10595bb3341afa2ab0851c8269c19d8.tar
tangerine-wallet-browser-ebdefe81a10595bb3341afa2ab0851c8269c19d8.tar.gz
tangerine-wallet-browser-ebdefe81a10595bb3341afa2ab0851c8269c19d8.tar.bz2
tangerine-wallet-browser-ebdefe81a10595bb3341afa2ab0851c8269c19d8.tar.lz
tangerine-wallet-browser-ebdefe81a10595bb3341afa2ab0851c8269c19d8.tar.xz
tangerine-wallet-browser-ebdefe81a10595bb3341afa2ab0851c8269c19d8.tar.zst
tangerine-wallet-browser-ebdefe81a10595bb3341afa2ab0851c8269c19d8.zip
Refactor buffer constructor (#5468)
Diffstat (limited to 'test/unit/components')
-rw-r--r--test/unit/components/binary-renderer-test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/components/binary-renderer-test.js b/test/unit/components/binary-renderer-test.js
index 7bf9250cc..e428c26ad 100644
--- a/test/unit/components/binary-renderer-test.js
+++ b/test/unit/components/binary-renderer-test.js
@@ -4,7 +4,7 @@ var BinaryRenderer = require('../../../old-ui/app/components/binary-renderer')
describe('BinaryRenderer', function () {
let binaryRenderer
const message = 'Hello, world!'
- const buffer = new Buffer(message, 'utf8')
+ const buffer = Buffer.from(message, 'utf8')
const hex = buffer.toString('hex')
beforeEach(function () {