mirror of
https://github.com/wassname/talk.git
synced 2026-07-31 12:50:48 +08:00
Updated tests
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user