aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/components/binary-renderer-test.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-05-05 09:01:46 +0800
committerGitHub <noreply@github.com>2017-05-05 09:01:46 +0800
commitf01891fc019b748151365cf7b04cbc26c94f3d06 (patch)
treec54cdcacb46b91ba5bd22451ec72f8a092495b22 /test/unit/components/binary-renderer-test.js
parenta72f50509010a12bf4fb879f2c638a38d2a210d2 (diff)
parent1e4855fc0e2e89ebe6b50ff8d34762f742433110 (diff)
downloadtangerine-wallet-browser-f01891fc019b748151365cf7b04cbc26c94f3d06.tar
tangerine-wallet-browser-f01891fc019b748151365cf7b04cbc26c94f3d06.tar.gz
tangerine-wallet-browser-f01891fc019b748151365cf7b04cbc26c94f3d06.tar.bz2
tangerine-wallet-browser-f01891fc019b748151365cf7b04cbc26c94f3d06.tar.lz
tangerine-wallet-browser-f01891fc019b748151365cf7b04cbc26c94f3d06.tar.xz
tangerine-wallet-browser-f01891fc019b748151365cf7b04cbc26c94f3d06.tar.zst
tangerine-wallet-browser-f01891fc019b748151365cf7b04cbc26c94f3d06.zip
Merge pull request #1376 from MetaMask/1061-Linting-Tests
1061 linting tests
Diffstat (limited to 'test/unit/components/binary-renderer-test.js')
-rw-r--r--test/unit/components/binary-renderer-test.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/unit/components/binary-renderer-test.js b/test/unit/components/binary-renderer-test.js
index 3264faddc..ee2fa8b60 100644
--- a/test/unit/components/binary-renderer-test.js
+++ b/test/unit/components/binary-renderer-test.js
@@ -1,24 +1,22 @@
var assert = require('assert')
var BinaryRenderer = require('../../../ui/app/components/binary-renderer')
-describe('BinaryRenderer', function() {
-
+describe('BinaryRenderer', function () {
let binaryRenderer
const message = 'Hello, world!'
const buffer = new Buffer(message, 'utf8')
const hex = buffer.toString('hex')
- beforeEach(function() {
+ beforeEach(function () {
binaryRenderer = new BinaryRenderer()
})
- it('recovers message', function() {
+ it('recovers message', function () {
const result = binaryRenderer.hexToText(hex)
assert.equal(result, message)
})
-
- it('recovers message with hex prefix', function() {
+ it('recovers message with hex prefix', function () {
const result = binaryRenderer.hexToText('0x' + hex)
assert.equal(result, message)
})