CRM-16036 - remove getfields from mailing test as it is producing incorrect results...
[civicrm-core.git] / tools / scripts / npm / test.sh
CommitLineData
77665792
TO
1#!/bin/bash
2if which node_modules/karma/bin/karma >> /dev/null; then
0292a407
TO
3 if which nodejs >> /dev/null; then
4 ## Debian
5 nodejs node_modules/karma/bin/karma start
6 else
7 ## Official
8 node node_modules/karma/bin/karma start
9 fi
77665792 10elif which karma >> /dev/null ; then
450ae8a9 11 karma start
77665792
TO
12else
13 echo "ERROR: Failed to find karma"
14 exit 1
15fi