From 959315c8f767273f6eb751de1b06ed8501e284a2 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 6 Feb 2017 13:43:51 +0300 Subject: [PATCH] test admin/search --- test/socket.io.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/socket.io.js b/test/socket.io.js index b28361cc19..ac8170225c 100644 --- a/test/socket.io.js +++ b/test/socket.io.js @@ -421,6 +421,18 @@ describe('socket.io', function () { }); }); + it('should get admin search dictionary', function (done) { + var socketAdmin = require('../src/socket.io/admin'); + socketAdmin.getSearchDict({uid: adminUid}, {}, function (err, data) { + assert.ifError(err); + assert(Array.isArray(data)); + assert(data[0].namespace); + assert(data[0].translations); + assert(data[0].title); + done(); + }); + }); + after(function (done) { db.emptydb(done);