1 | var should = require('chai').should();
|
2 | var expect = require('chai').expect;
|
3 | var dotenv = require('dotenv');
|
4 | console.log("here");
|
5 |
|
6 | try { dotenv.load(); } catch(error) { console.error(error); }
|
7 |
|
8 | var Chat21 = require('../index.js');
|
9 | var chat21 = new Chat21({
|
10 | url: process.env.CHAT21_URL,
|
11 | appid: process.env.CHAT21_APPID,
|
12 | oauth: true,
|
13 | authurl: process.env.CHAT21_AUTH_URL,
|
14 | firebase_apikey: process.env.FIREBASE_APIKEY,
|
15 | firebase_database: process.env.FIREBASE_DATABASE
|
16 | });
|
17 |
|
18 | describe('Chat21', function(){
|
19 | describe('messages', function(){
|
20 | require('./models/messages.js')(chat21);
|
21 | });
|
22 | describe('groups', function(){
|
23 | require('./models/groups.js')(chat21);
|
24 | });
|
25 | }); |
\ | No newline at end of file |