Skip to content
Snippets Groups Projects
Commit 908662af authored by Marius's avatar Marius
Browse files

asdasd

parent 82022422
No related branches found
No related tags found
No related merge requests found
Pipeline #25397 failed
...@@ -17,8 +17,7 @@ beforeAll(() => { ...@@ -17,8 +17,7 @@ beforeAll(() => {
'mordi' 'mordi'
) )
) )
) .then(() => databaseCategory.create(new CategoryData('mordi'));
.then(() => databaseCategory.create(new CategoryData('mordi')));
}); });
test('empty test', () => { test('empty test', () => {
...@@ -48,7 +47,7 @@ test('findOne', () => { ...@@ -48,7 +47,7 @@ test('findOne', () => {
test('DB test findAll', async () => { test('DB test findAll', async () => {
expect.assertions(1); expect.assertions(1);
return databaseArticle.findAll().then(a => expect(a.length).toBe(1)); return databaseArticle.findAll().then(a => expect(a.length).toBe(2));
}); });
// let b = new Article( // let b = new Article(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment