UNPKG

730 BJavaScriptView Raw
1var should = require('chai').should();
2var expect = require('chai').expect;
3var dotenv = require('dotenv');
4console.log("here");
5// First try to load the enviroment variables
6try { dotenv.load(); } catch(error) { console.error(error); }
7
8var Chat21 = require('../index.js');
9var 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
18describe('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