b0VIM 8.0>ôYš™SÛGdylanjhaveriDylans-MacBook-Pro.local~dylanjhaveri/code/drip-node/spec/lib/client_spec.jsutf-8 3210#"! Utp8adµ±8çæÙØ­¬‹UÓ�f-ó î í • u K  ê å ä ¹ r  î ¹ … o f _ ^  ² ‚ M   Ò É Â ½ ¼ ˜ U  ¯¨§dÀ¹´±°ŒIõ£œ›Xú´­¨}) }) }) expect(client.urlBase()).toEqual('https://api.getdrip.com/v2/}) const client = new Client({accessToken: 'my-access-token', accountId: 'my-account-id'}) it('should have the correct url for token auth', function ()}}) }) expect(client.urlBase()).toEqual('https://my-api-key:@api.getdrip.com/v2/}) const client = new Client({apiKey: 'my-api-key', accountId: 'my-account-id'}) it('should have the correct url for basic auth', function ()}) describe('urlBase', function ()}}) }) }) expect(client.urlBase()).toEqual('https://api.getdrip.com/v2/') const client = new Client({accessToken: 'my-access-token', accountId: 'my-account-id'}) it('should have the correct url for token auth', function () { }) expect(client.urlBase()).toEqual('https://my-api-key:@api.getdrip.com/v2/') const client = new Client({apiKey: 'my-api-key', accountId: 'my-account-id'}) it('should have the correct url for basic auth', function () { describe('urlBase', function () { }) }) }) Authorization: 'Bearer my-access-token' Accept: '*/*', 'Content-Type': 'application/vnd.api+json', 'User-Agent': `Drip Node ${client.version}`, expect(client.requestHeaders()).toEqual({ const client = new Client({accessToken: 'my-access-token', accountId: 'my-account-id'}) it('should have the correct headers for bearer token auth', function () { }) }) Accept: '*/*' 'Content-Type': 'application/vnd.api+json', 'User-Agent': `Drip Node ${client.version}`, expect(client.requestHeaders()).toEqual({ const client = new Client({apiKey: 'my-api-key', accountId: 'my-account-id'}) it('should have the correct headers for basic auth', function () { describe('requestHeaders', function () { }) expect(client.missingCredentials).toEqual(true) expect(client.accountId).toBeUndefined() expect(client.apiKey).toBeUndefined() const client = new Client() it('should return a client missingCredentials state if none are given', function () { }) expect(typeof client.trackEvents).toEqual('function') expect(typeof client.trackEvent).toEqual('function') expect(typeof client.accounts).toEqual('function') expect(client.accountId).toEqual('my-account-id') expect(client.apiKey).toEqual('my-api-key') const client = new Client({apiKey: 'my-api-key', accountId: 'my-account-id'}) it('should return a client instance', function () {describe('Client', function () {const Client = require('../../lib/client')'use strict'/* eslint-env jasmine */