From a0929fd773e9deeb501b7b32468507e81dd56e18 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Tue, 24 Oct 2017 12:30:07 -0300 Subject: [PATCH] Updated tests --- test/server/routes/api/assets/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/server/routes/api/assets/index.js b/test/server/routes/api/assets/index.js index a07b154d4..0dacccbad 100644 --- a/test/server/routes/api/assets/index.js +++ b/test/server/routes/api/assets/index.js @@ -56,7 +56,7 @@ describe('/api/v1/assets', () => { it('should return assets that we search for', async () => { for (const role of ['ADMIN', 'MODERATOR']) { const res = await chai.request(app) - .get('/api/v1/assets?search=term2') + .get('/api/v1/assets?value=term2') .set(passport.inject({roles: [role]})); const body = res.body; @@ -78,7 +78,7 @@ describe('/api/v1/assets', () => { it('should not return assets that we do not search for', async () => { for (const role of ['ADMIN', 'MODERATOR']) { const res = await chai.request(app) - .get('/api/v1/assets?search=term3') + .get('/api/v1/assets?value=term3') .set(passport.inject({roles: [role]})); const body = res.body;