Skip to content

Commit

Permalink
Merge pull request #7 from radarlabs/expose-status-codes
Browse files Browse the repository at this point in the history
expose STATUS codes
  • Loading branch information
kochis authored May 6, 2019
2 parents 9bab856 + 175e92c commit d4a56a4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "radar-sdk-js",
"description": "Web JavaScript SDK for Radar, the location platform for mobile apps",
"description": "Web JavaScript SDK for Radar, the location context platform",
"homepage": "https://radar.io",
"license": "Apache-2.0",
"version": "1.0.0",
"version": "1.1.0",
"main": "dist/index.js",
"module": "src/index.js",
"files": [
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ class Radar {
return PLACES_PROVIDER;
}

static get STATUS() {
return STATUS;
}

static initialize(publishableKey) {
if (!publishableKey) {
console.error('Radar "initialize" was called without a publishable key');
Expand Down
2 changes: 1 addition & 1 deletion src/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default '1.0.0';
export default '1.1.0';
6 changes: 6 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ describe('Radar', () => {
});
});

describe('STATUS', () => {
it('should return the list of possible status codes', () => {
expect(Radar.STATUS).to.eql(STATUS);
});
});

describe('initialize', () => {
context('no publishable key given', () => {
before(() => {
Expand Down

0 comments on commit d4a56a4

Please sign in to comment.