Built motion from commit 5e31ea4.|0.0.32
[motion.git] / server / api / chat_website / chat_website.spec.js
index 1660c66..4fd8b11 100644 (file)
@@ -1 +1,20 @@
-var _0xa4b2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x77\x65\x62\x73\x69\x74\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x77\x65\x62\x73\x69\x74\x65\x73","\x67\x65\x74"];_0xa4b2[0];var should=require(_0xa4b2[1]);var app=require(_0xa4b2[2]);var request=require(_0xa4b2[3]);describe(_0xa4b2[4],function(){it(_0xa4b2[5],function(_0x16ffx4){request(app)[_0xa4b2[13]](_0xa4b2[12])[_0xa4b2[11]](200)[_0xa4b2[11]](_0xa4b2[10],/json/)[_0xa4b2[9]](function(_0x16ffx5,_0x16ffx6){if(_0x16ffx5){return _0x16ffx4(_0x16ffx5)};_0x16ffx6[_0xa4b2[8]][_0xa4b2[1]][_0xa4b2[7]][_0xa4b2[6]](Array);_0x16ffx4();})})});
\ No newline at end of file
+'use strict';
+
+var should = require('should');
+var app = require('../../app');
+var request = require('supertest');
+
+describe('GET /api/chat/websites', function() {
+
+  it('should respond with JSON array', function(done) {
+    request(app)
+      .get('/api/chat/websites')
+      .expect(200)
+      .expect('Content-Type', /json/)
+      .end(function(err, res) {
+        if (err) return done(err);
+        res.body.should.be.instanceof(Array);
+        done();
+      });
+  });
+});
\ No newline at end of file