From 5f189c9c85449951254646ddf6cd6c84bc4c06ff Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 24 Jul 2019 10:21:22 +0200 Subject: Add hooks documentation --- server/tests/api/travis-1.sh | 2 +- server/tests/api/travis-2.sh | 2 +- server/tests/api/travis-3.sh | 2 +- server/tests/api/travis-4.sh | 2 +- server/tests/plugins/index.ts | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'server/tests') diff --git a/server/tests/api/travis-1.sh b/server/tests/api/travis-1.sh index 4572416b7..db4021b25 100644 --- a/server/tests/api/travis-1.sh +++ b/server/tests/api/travis-1.sh @@ -6,5 +6,5 @@ checkParamFiles=$(find server/tests/api/check-params -type f | grep -v index.ts notificationsFiles=$(find server/tests/api/notifications -type f | grep -v index.ts | xargs echo) searchFiles=$(find server/tests/api/search -type f | grep -v index.ts | xargs echo) -MOCHA_PARALLEL=true mocha --timeout 5000 --retries 3 --exit --require ts-node/register --bail \ +MOCHA_PARALLEL=true mocha --timeout 5000 --exit --require ts-node/register --bail \ $notificationsFiles $searchFiles $checkParamFiles diff --git a/server/tests/api/travis-2.sh b/server/tests/api/travis-2.sh index 3c519ef68..ba7a061b0 100644 --- a/server/tests/api/travis-2.sh +++ b/server/tests/api/travis-2.sh @@ -5,5 +5,5 @@ set -eu serverFiles=$(find server/tests/api/server -type f | grep -v index.ts | xargs echo) usersFiles=$(find server/tests/api/users -type f | grep -v index.ts | xargs echo) -MOCHA_PARALLEL=true mocha --timeout 5000 --retries 3 --exit --require ts-node/register --bail \ +MOCHA_PARALLEL=true mocha --timeout 5000 --exit --require ts-node/register --bail \ $serverFiles $usersFiles diff --git a/server/tests/api/travis-3.sh b/server/tests/api/travis-3.sh index 97dadafca..82457222c 100644 --- a/server/tests/api/travis-3.sh +++ b/server/tests/api/travis-3.sh @@ -4,5 +4,5 @@ set -eu videosFiles=$(find server/tests/api/videos -type f | grep -v index.ts | xargs echo) -MOCHA_PARALLEL=true mocha --timeout 5000 --retries 3 --exit --require ts-node/register --bail \ +MOCHA_PARALLEL=true mocha --timeout 5000 --exit --require ts-node/register --bail \ $videosFiles diff --git a/server/tests/api/travis-4.sh b/server/tests/api/travis-4.sh index 6009b1f0e..875986182 100644 --- a/server/tests/api/travis-4.sh +++ b/server/tests/api/travis-4.sh @@ -5,5 +5,5 @@ set -eu redundancyFiles=$(find server/tests/api/redundancy -type f | grep -v index.ts | xargs echo) activitypubFiles=$(find server/tests/api/activitypub -type f | grep -v index.ts | xargs echo) -MOCHA_PARALLEL=true mocha-parallel-tests --max-parallel $1 --timeout 5000 --retries 3 --exit --require ts-node/register --bail \ +MOCHA_PARALLEL=true mocha-parallel-tests --max-parallel $1 --timeout 5000 --exit --require ts-node/register --bail \ $redundancyFiles $activitypubFiles diff --git a/server/tests/plugins/index.ts b/server/tests/plugins/index.ts index b640ecc9e..d97ca1515 100644 --- a/server/tests/plugins/index.ts +++ b/server/tests/plugins/index.ts @@ -1,2 +1,2 @@ -export * from './action-hooks' -export * from './filter-hooks' +import './action-hooks' +import './filter-hooks' -- cgit v1.2.3