index.js 418 B

123456789101112131415
  1. import uuid from 'uuid/v4';
  2. import { APP_ID, APP_KEY } from '../../../test/configs';
  3. import { Realtime } from '../../../src/core';
  4. import { LiveQueryPlugin } from '../src';
  5. const realtime = new Realtime({
  6. appId: APP_ID,
  7. appKey: APP_KEY,
  8. plugins: [LiveQueryPlugin],
  9. });
  10. describe('LiveQuery', () => {
  11. it('login and logout', () =>
  12. realtime.createLiveQueryClient(uuid()).then(client => client.close()));
  13. });