#!/bin/bash

type -P nodeunit &>/dev/null || { 
  echo "You need to install Nodeunit to run the tests!" >&2
  echo "You can install it with npm" >&2
  echo "Run: npm install nodeunit" >&2
  exit 1 
}

if [ -d "../bin" ]; then
  cd "../"
fi

nodeunit tests
