11 lines
317 B
JavaScript
11 lines
317 B
JavaScript
|
const app = require('vn-loopback/server/server');
|
||
|
|
||
|
describe('getCollection()', () => {
|
||
|
it('return list of collection', async() => {
|
||
|
let ctx = {req: {accessToken: {userId: 1}}};
|
||
|
let response = await app.models.Collection.getCollection(ctx);
|
||
|
|
||
|
expect(response.length).toEqual(0);
|
||
|
});
|
||
|
});
|