Skip to content

Commit e899065

Browse files
committed
Test filter disabling when getting all views
1 parent a628292 commit e899065

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/items.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,13 @@ describe('all', () => {
9090
expect(body.data['/rover2'].views).toBeDefined()
9191
expect(body.data['/rover2'].views.length).toBe(1)
9292
})
93+
94+
it('should not filter if filter is set to false', async () => {
95+
await request(`${url}/rover`)
96+
await request(`${url}/rover2`)
97+
await request(`${url}/route`)
98+
const body = JSON.parse(await request(`${url}/rover?all=true&filter=false`))
99+
expect(Object.keys(body.data).length).toBe(3)
100+
})
93101
})
94102
})

0 commit comments

Comments
 (0)