{
    "name": "bh1750-jh",
    "description": "light sensor bh1750 with raspberry pi",
    "author": "Miroslav Rúčka, Jos Hendriks",
    "version": "0.0.1",
    "main": "bh1750",
    "repository": {
        "type": "git",
        "url": "https://github.com/circuitdb/bh1750"
    },
    "dependencies": {
        "lodash": "2.4.1",
        "i2c": "~0.2.1"
    },
    "keywords": [
        "raspberry, raspberry pi, light, sensor, bh1750"
    ],
    "licenses": [
        {
            "type": "MIT",
            "url": "http://mths.be/mit"
        }
    ]
}

{
    "name": "bh1750-jh",
    "description": "light sensor bh1750 with raspberry pi",
    "author": "Miroslav Rúčka, Jos Hendriks",
    "version": "0.0.1",
    "main": "bh1750",
    "scripts": {
        "test": "node example"
    },
    "repository": {
        "type": "git",
        "url": "https://github.com/circuitdb/bh1750"
    },
    "dependencies": {
        "lodash": "2.4.1",
        "i2c": "~0.2.1"
    },
    "keywords": [
        "raspberry, raspberry pi, light, sensor, bh1750"
    ],
    "licenses": [
        {
            "type": "MIT",
            "url": "http://mths.be/mit"
        }
    ]
}

Add test to NPM manifest
Add test to NPM manifest

  npm test

Will run successfully:

  node example
  light value is:  6.25 lx

If device is not present then it will fail:

  npm test
  light error: Error: Error reading length of bytes
  .../bh1750/example/index.js:7
  throw err;
  Error: Error reading length of bytes
  (...)
  at node.js:1043:3
  npm ERR! Test failed.  See above for more details.
  (...)
  npm ERR! not ok code 0

Change-Id: Iaa86e86d73c773ea92fce56f1c5247f3752a0af6
Signed-off-by: Philippe Coval <ff46fec9739d31cce915aabcc3a7a2c00eee4d6c@osg.samsung.com>
