mirror of
https://github.com/ascribe/onion.git
synced 2024-12-31 09:07:48 +01:00
format stuff
This commit is contained in:
parent
793e1a78ca
commit
e2ab0c1a5c
@ -10,8 +10,8 @@ The code is JavaScript ECMA 6.
|
|||||||
Getting started
|
Getting started
|
||||||
===============
|
===============
|
||||||
Install some nice extensions for Chrom(e|ium):
|
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)
|
- [React Developer Tools](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -53,6 +53,7 @@ Troubleshooting
|
|||||||
===============
|
===============
|
||||||
|
|
||||||
Q: OMG nothing works
|
Q: OMG nothing works
|
||||||
|
|
||||||
A: try `npm install`. Someone may have updated some dependencies
|
A: try `npm install`. Someone may have updated some dependencies
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
jest.dontMock('../general_utils.js');
|
jest.dontMock('../general_utils.js');
|
||||||
|
|
||||||
|
|
||||||
let GeneralUtils = require('../general_utils')
|
let GeneralUtils = require('../general_utils')
|
||||||
|
|
||||||
let sanitize = GeneralUtils.sanitize;
|
let sanitize = GeneralUtils.sanitize;
|
||||||
|
@ -1,15 +1,13 @@
|
|||||||
'use strict';
|
'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
|
* - empty strings; or
|
||||||
* - null; or
|
* - null; or
|
||||||
* - undefined
|
* - undefined
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @param {object} obj regular javascript object
|
* @param {object} obj regular javascript object
|
||||||
* @return {object} regular javascript object without null values or empty strings
|
* @return {object} regular javascript object without null values or empty strings
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user