salix/back/methods/collection/spec/getCollection.spec.js

11 lines
317 B
JavaScript
Raw Normal View History

2020-03-26 18:10:09 +00:00
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);
});
});