Skip to content

Commit fcd985e

Browse files
committed
Added tests for license key in query builder
1 parent 6ba80af commit fcd985e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/analytics/queries.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ describe('analytics', () => {
6060
const end = moment().toDate();
6161
const testBuilderFunction = (func) => {
6262
const fn = func('STARTUPTIME')
63+
.licenseKey('license-key')
6364
.between(start, end)
6465
.interval('DAY')
6566
.filter('STARTUPTIME', 'GT', 0)
@@ -71,6 +72,7 @@ describe('analytics', () => {
7172
assertItReturnsPromise(mockPost, () => { return fn.query() });
7273
assertPayload(mockPost, () => { return fn.query() }, {
7374
dimension: 'STARTUPTIME',
75+
licenseKey: 'license-key',
7476
start: start,
7577
end: end,
7678
filters: [

0 commit comments

Comments
 (0)