11 lines
334 B
JavaScript
11 lines
334 B
JavaScript
|
const app = require('vn-loopback/server/server');
|
||
|
|
||
|
describe('newCollection()', () => {
|
||
|
it('return a new collection', async() => {
|
||
|
let ctx = {req: {accessToken: {userId: 1}}};
|
||
|
let response = await app.models.Collection.newCollection(ctx, 500, 1, 1);
|
||
|
|
||
|
expect(response.length).toBeGreaterThan(0);
|
||
|
});
|
||
|
});
|