From 68ce3ae021c9bc11b155044df6d23ba60e91eee4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sat, 21 May 2016 19:30:22 +0200 Subject: Add total results field and wrap videos in data field when listing videos --- server/tests/api/checkParams.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/tests/api/checkParams.js') diff --git a/server/tests/api/checkParams.js b/server/tests/api/checkParams.js index a109aba47..e02fd0da5 100644 --- a/server/tests/api/checkParams.js +++ b/server/tests/api/checkParams.js @@ -299,8 +299,8 @@ describe('Test parameters validator', function () { .end(function (err, res) { if (err) throw err - expect(res.body).to.be.an('array') - expect(res.body.length).to.equal(3) + expect(res.body.data).to.be.an('array') + expect(res.body.data.length).to.equal(3) done() }) -- cgit v1.2.3