diff --git a/README.md b/README.md index ba29c9ac..97408a06 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ The code is JavaScript ECMA 6. Getting started =============== Install some nice extensions for Chrom(e|ium): -- [Allow-Control-Allow-Origin](https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi): - we need this to open connection to external hosts ([staging.ascribe.io](http://staging.ascribe.io/) in our case) + +- [Allow-Control-Allow-Origin](https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi): we need this to open connection to external hosts ([staging.ascribe.io](http://staging.ascribe.io/) in our case) - [React Developer Tools](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi) ```bash @@ -53,6 +53,7 @@ Troubleshooting =============== Q: OMG nothing works + A: try `npm install`. Someone may have updated some dependencies diff --git a/js/utils/__tests__/general_utils_test.js b/js/utils/__tests__/general_utils_test.js index 9b37782c..c5d58291 100644 --- a/js/utils/__tests__/general_utils_test.js +++ b/js/utils/__tests__/general_utils_test.js @@ -1,6 +1,5 @@ jest.dontMock('../general_utils.js'); - let GeneralUtils = require('../general_utils') let sanitize = GeneralUtils.sanitize; diff --git a/js/utils/general_utils.js b/js/utils/general_utils.js index a323b65d..98202725 100644 --- a/js/utils/general_utils.js +++ b/js/utils/general_utils.js @@ -1,15 +1,13 @@ 'use strict'; -// TODO: Create Unittests that test all functions - /** - * Takes an object and deletes all keys that are + * Takes an object and deletes all keys that are * * - empty strings; or * - null; or * - undefined - * - * + * + * * @param {object} obj regular javascript object * @return {object} regular javascript object without null values or empty strings */