You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
381 B
JavaScript
20 lines
381 B
JavaScript
const { expect } = require('chai');
|
|
|
|
describe('User (model)', () => {
|
|
before(async () => {
|
|
await User.create({
|
|
email: 'test@test.test',
|
|
password: 'test',
|
|
name: 'test',
|
|
});
|
|
});
|
|
|
|
describe('#find()', () => {
|
|
it('should return 1 user', async () => {
|
|
const users = await User.find();
|
|
|
|
expect(users).to.have.lengthOf(1);
|
|
});
|
|
});
|
|
});
|