test: get_accounts
Massimo Melina committed
Feb 11, 2025 at 23:08 UTC
2b463cc686c127cc5315cdab5104c8a5e27e1271
1 file changed
+2
tests/test.ts
+2
@@ -155,6 +155,8 @@ describe('basics', () => {
155
156
it('folder size', reqApi('get_folder_size', { uri: 'f1/page' }, res => res.bytes === 6328 ))
157
it('folder size.cant', reqApi('get_folder_size', { uri: 'for-admins' }, 401))
158
+
159
+ it('get_accounts', reqApi('get_accounts', {}, ({ list }) => _.find(list, { username}) && _.find(list, { username: 'admins' })))
160
})
161
162
describe('accounts', () => {