1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 05:09:43 +02:00
planka/server/test/integration/models/User.test.js
Maksim Eltyshev 2ee1166747 feat: Version 2
Closes #627, closes #1047
2025-05-10 02:09:06 +02:00

20 lines
417 B
JavaScript

const { expect } = require('chai');
describe('User (model)', () => {
before(async () => {
await User.qm.createOne({
email: 'test@test.test',
password: 'test',
role: User.Roles.ADMIN,
name: 'test',
});
});
describe('#find()', () => {
it('should return 1 user', async () => {
const users = await User.find();
expect(users).to.have.lengthOf(1);
});
});
});