@engage_so/core
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -45,3 +45,3 @@ const fetch = require('cross-fetch') | ||
if (typeof o === 'string') { | ||
options.key = `${o.key}` | ||
options.key = o | ||
return | ||
@@ -48,0 +48,0 @@ } |
{ | ||
"name": "@engage_so/core", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Event driven customer segmentation and targeted engagement.", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "844724b66d733bfd598df07556c2c8e731850274" | ||
"gitHead": "db428a4871d2c55a55cef898a7e79389d3e4c0ce" | ||
} |
@@ -20,2 +20,7 @@ const Engage = require('../index') | ||
}) | ||
test('should not throw if key is sent', () => { | ||
expect(() => { | ||
Engage.init(process.env.KEY) | ||
}).not.toThrowError() | ||
}) | ||
test('should not throw if key/secret is sent', () => { | ||
@@ -22,0 +27,0 @@ expect(() => { |
7058
243
4