From fc6d0c080d84ed0373e502b408ea8d8ea72b4d23 Mon Sep 17 00:00:00 2001 From: Jeronimo Vallelunga Date: Thu, 13 Jul 2017 00:37:45 -0300 Subject: [PATCH] Travis: https://codecov.io/bash --- .travis.yml | 6 +++--- README.md | 1 - src/common/config/index.test.js | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 src/common/config/index.test.js diff --git a/.travis.yml b/.travis.yml index 49fb59c..76f65ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,8 +17,8 @@ branches: - master cache: directories: - - node_modules - - example/webapp/node_modules + - node_modules + - example/webapp/node_modules deploy: provider: pages skip_cleanup: true @@ -27,4 +27,4 @@ deploy: on: branch: master after_success: - - codecov \ No newline at end of file + - bash <(curl -s https://codecov.io/bash) -e TRAVIS_NODE_VERSION \ No newline at end of file diff --git a/README.md b/README.md index 4869892..ed0fe15 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,5 @@ console.log(dummy()); - bundlesize - Prepack - redux-observable -- Coverage: Coverall | https://codecov.io/ - Badges: ci, coverage, npm - https://greenkeeper.io/ \ No newline at end of file diff --git a/src/common/config/index.test.js b/src/common/config/index.test.js new file mode 100644 index 0000000..23a2305 --- /dev/null +++ b/src/common/config/index.test.js @@ -0,0 +1,17 @@ +/* global test, expect */ +import { CENTRAL_CONFIG, BLENO_CONFIG } from '.'; + +test('config central', () => { + expect(CENTRAL_CONFIG).toEqual({ + SERVICE_UUID: '13333333-3333-3333-3333-333333333337', + CHARACTERISTIC_UUID: '13333333-3333-3333-3333-333333330001', + }); +}); + +test('config bleno', () => { + expect(BLENO_CONFIG).toEqual({ + SERVICE_UUID: '13333333333333333333333333333337', + CHARACTERISTIC_UUID: '13333333333333333333333333330001', + DESCRIPTOR_UUID: '2901', + }); +});