/sevenbridges-node

Primary LanguageTypeScriptApache License 2.0Apache-2.0

sbg-node-client

Seven Bridges NodeJS Client implementation

Develpoment setup:

npm install -g gulp-cli tsd 

# in root directory run
npm install

create file in ~/.sbg/configuration.json

with content

{
    "auth_token" : "xxxxxxx"
}

Running tests:

gulp test

Running specifig client tests:

gulp test --test user # will run only tests/user-client-test.js

Writing tests:

  • When testing API calls, use done() insted of then() since its actually test friendly, and will print pritty stack trace when assertion fails