mirror of
https://github.com/plankanban/planka.git
synced 2025-07-22 22:59:44 +02:00
Add test libs, update dependencies
This commit is contained in:
parent
089668ed10
commit
767d39586c
24 changed files with 1692 additions and 159 deletions
19
server/test/integration/models/User.test.js
Normal file
19
server/test/integration/models/User.test.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
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);
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue