mirror of
https://github.com/jimeh/heartb.it.git
synced 2026-02-19 12:56:47 +00:00
added a simple test for the host_redirect middleware using mocha and should.js
This commit is contained in:
11
Makefile
11
Makefile
@@ -1,9 +1,11 @@
|
||||
.SILENT:
|
||||
.PHONY: build watch
|
||||
.PHONY: build watch docs test
|
||||
|
||||
COFFEE_SRC = src
|
||||
COFFEE_OUT = .
|
||||
BIN = ./node_modules/.bin
|
||||
COFFEE_SRC = ./src
|
||||
COFFEE_OUT = ./
|
||||
REPORTER = spec
|
||||
TEST_DIR = ./test
|
||||
|
||||
build:
|
||||
$(BIN)/coffee -c -o $(COFFEE_OUT) $(COFFEE_SRC)
|
||||
@@ -13,3 +15,6 @@ watch:
|
||||
|
||||
docs:
|
||||
$(BIN)/docco $(shell find $(COFFEE_SRC) -name '*.coffee')
|
||||
|
||||
test:
|
||||
$(BIN)/mocha -R $(REPORTER) $(TEST_DIR)/*.js
|
||||
|
||||
Reference in New Issue
Block a user