zulip/tools/test-js-with-node
Steve Howell 6790ed79cc Add a unit test for activity.js.
This includes slightly invasive, but harmless, changes to
the production code.

(imported from commit ff40af504de2360ada866508da262e0d2e9f7ad9)
2013-08-09 13:11:59 -04:00

20 lines
408 B
Bash
Executable File

#!/bin/bash -e
cd "$(dirname "$0")"/../zerver/tests/frontend/node
STATIC_DIR=`python -c 'import os;print os.path.realpath("../../../../static")'`
export NODE_PATH=$STATIC_DIR
NODEJS=$(which nodejs || which node)
$NODEJS filter.js
$NODEJS stream_color.js
$NODEJS activity.js
$NODEJS util.js
$NODEJS message_list.js
$NODEJS message_tour.js
$NODEJS narrow.js
$NODEJS unread.js
$NODEJS search_suggestion.js