diff options
author | Thomas Huang <thomas.b.huang@gmail.com> | 2017-05-05 05:35:10 +0800 |
---|---|---|
committer | Thomas Huang <thomas.b.huang@gmail.com> | 2017-05-05 05:35:10 +0800 |
commit | 0b13429daf00ddd5bdf2705c7a95d7a9d5792f54 (patch) | |
tree | f249d8deb5fa48db54d70757de944b2c8ff76a2e /test/unit/components | |
parent | 8f5334e4aca8b95963f57b0fbf862256b692dbd9 (diff) | |
download | tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar.gz tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar.bz2 tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar.lz tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar.xz tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.tar.zst tangerine-wallet-browser-0b13429daf00ddd5bdf2705c7a95d7a9d5792f54.zip |
Lint tests
Diffstat (limited to 'test/unit/components')
-rw-r--r-- | test/unit/components/binary-renderer-test.js | 10 |
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) }) |