diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-06-24 08:55:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-24 08:55:10 +0800 |
commit | ac2269b16ebc97a75e06347d5a042caad3cfed54 (patch) | |
tree | 67a985a616e31680a088dd727a82822510ae8bb7 /test | |
parent | 2a358d73f8da6600b6f1b279454d756ddabdd36b (diff) | |
parent | 2808fd175bbd65c94847305351ff390e55a336ce (diff) | |
download | tangerine-wallet-browser-ac2269b16ebc97a75e06347d5a042caad3cfed54.tar tangerine-wallet-browser-ac2269b16ebc97a75e06347d5a042caad3cfed54.tar.gz tangerine-wallet-browser-ac2269b16ebc97a75e06347d5a042caad3cfed54.tar.bz2 tangerine-wallet-browser-ac2269b16ebc97a75e06347d5a042caad3cfed54.tar.lz tangerine-wallet-browser-ac2269b16ebc97a75e06347d5a042caad3cfed54.tar.xz tangerine-wallet-browser-ac2269b16ebc97a75e06347d5a042caad3cfed54.tar.zst tangerine-wallet-browser-ac2269b16ebc97a75e06347d5a042caad3cfed54.zip |
Merge pull request #312 from MetaMask/svg-notif
initial svg notifications
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/lib/icon-factory-test.js | 31 | ||||
-rw-r--r-- | test/unit/linting_test.js | 2 |
2 files changed, 1 insertions, 32 deletions
diff --git a/test/unit/lib/icon-factory-test.js b/test/unit/lib/icon-factory-test.js deleted file mode 100644 index 2f24d408c..000000000 --- a/test/unit/lib/icon-factory-test.js +++ /dev/null @@ -1,31 +0,0 @@ -const assert = require('assert') -const sinon = require('sinon') - -const path = require('path') -const IconFactoryGen = require(path.join(__dirname, '..', '..', '..', 'ui', 'lib', 'icon-factory.js')) - -describe('icon-factory', function() { - let iconFactory, address, diameter - - beforeEach(function() { - iconFactory = IconFactoryGen((d,n) => 'stubicon') - address = '0x012345671234567890' - diameter = 50 - }) - - it('should return a data-uri string for any address and diameter', function() { - const output = iconFactory.iconForAddress(address, diameter) - assert.ok(output.indexOf('data:image/svg') === 0) - assert.equal(output, iconFactory.cache[address][diameter]) - }) - - it('should default to cache first', function() { - const testOutput = 'foo' - const mockSizeCache = {} - mockSizeCache[diameter] = testOutput - iconFactory.cache[address] = mockSizeCache - - const output = iconFactory.iconForAddress(address, diameter) - assert.equal(output, testOutput) - }) -}) diff --git a/test/unit/linting_test.js b/test/unit/linting_test.js index 27b4b2b1e..75d90652d 100644 --- a/test/unit/linting_test.js +++ b/test/unit/linting_test.js @@ -3,7 +3,7 @@ const lint = require('mocha-eslint'); const lintPaths = ['app/**/*.js', 'ui/**/*.js', '!node_modules/**', '!dist/**', '!docs/**', '!app/scripts/chromereload.js'] const lintOptions = { - strict: true, + strict: false, } lint(lintPaths, lintOptions)
\ No newline at end of file |