diff --git a/backend/test/tests/domains-crud.js b/backend/test/tests/domains-crud.js index 7b5fdf8..e98f93f 100644 --- a/backend/test/tests/domains-crud.js +++ b/backend/test/tests/domains-crud.js @@ -251,7 +251,7 @@ test.run(async function () { id: 1, name: 'example.com', type: 'MASTER', - records: 1 + records: 3 }, 'Domain 3 data mismatch'); }); }); \ No newline at end of file diff --git a/backend/test/tests/domains-get.js b/backend/test/tests/domains-get.js index 5fd3530..f9c827a 100644 --- a/backend/test/tests/domains-get.js +++ b/backend/test/tests/domains-get.js @@ -102,7 +102,7 @@ test.run(async function () { id: 3, name: 'foo.de', type: 'NATIVE', - records: 0 + records: 1 } ], 'Result fail for ' + res.config.url); }); diff --git a/utils/pre-commit.hook b/utils/pre-commit.hook index 44ed908..d161c95 100755 --- a/utils/pre-commit.hook +++ b/utils/pre-commit.hook @@ -14,6 +14,14 @@ then echo "Backend lint failed" exit 2 fi -cd .. +cd ../.. -exit 0 \ No newline at end of file +cd backend/test +if ! ./test.sh all +then + echo "Backend test failed" + exit 3 +fi +cd ../.. + +exit 0