UNPKG

pubnub

Version:

Publish & Subscribe Real-time Messaging with PubNub

37 lines (29 loc) 729 B
/** @flow */ import nock from 'nock'; import utils from '../../../utils'; import PubNub from '../../../../src/node/index'; // import {} from './fixtures'; describe('objects membership', () => { const SUBSCRIBE_KEY = 'mySubKey'; const PUBLISH_KEY = 'myPublishKey'; const UUID = 'myUUID'; const AUTH_KEY = 'myAuthKey'; let pubnub: PubNub; let PNSDK: string; before(() => { nock.disableNetConnect(); }); after(() => { nock.enableNetConnect(); }); beforeEach(() => { nock.cleanAll(); pubnub = new PubNub({ subscribeKey: SUBSCRIBE_KEY, publishKey: PUBLISH_KEY, uuid: UUID, authKey: AUTH_KEY, }); PNSDK = `PubNub-JS-Nodejs/${pubnub.getVersion()}`; }); });