1
0
Fork 0
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:
Maksim Eltyshev 2020-08-20 15:35:46 +05:00
parent 089668ed10
commit 767d39586c
24 changed files with 1692 additions and 159 deletions

View 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);
});
});
});