diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d0cf281..0000000 --- a/.travis.yml +++ /dev/null @@ -1,40 +0,0 @@ -language: node_js -cache: npm -stages: - - check - - test - - cov - -node_js: - - '10' - -os: - - linux - - osx - - windows - -script: npx nyc -s npm run test:node -- --bail -after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov - -jobs: - include: - - stage: check - script: - - npx aegir commitlint --travis - - npx aegir dep-check - - npm run lint - - - stage: test - name: chrome - addons: - chrome: stable - script: npx aegir test -t browser -t webworker - - - stage: test - name: firefox - addons: - firefox: latest - script: npx aegir test -t browser -t webworker -- --browsers FirefoxHeadless - -notifications: - email: false diff --git a/index.js b/index.js index a0ea056..8edf7f8 100644 --- a/index.js +++ b/index.js @@ -78,7 +78,7 @@ module.exports = multiformats => { * @param {Object} [options.tags] - An object whose keys are CBOR tag numbers and values are transform functions that accept a `value` and return a decoded representation of that `value` */ const configureDecoder = (options) => { - let tags = defaultTags + const tags = defaultTags if (options) { if (typeof options.size === 'number') { diff --git a/test/test-basics.js b/test/test-basics.js index 2ffcc12..1d433a4 100644 --- a/test/test-basics.js +++ b/test/test-basics.js @@ -83,7 +83,6 @@ describe('util', () => { dagCBOR.configureDecoder() }) - test('.serialize and .deserialize object with slash as property', () => { const slashObject = { '/': true } const serialized = encode(slashObject)