Skip to content

Commit

Permalink
make test: Pass --harmony-async-await so the AsyncFunction test will …
Browse files Browse the repository at this point in the history
…run on Travis in the node.js 7 build.
  • Loading branch information
papandreou committed Dec 15, 2016
1 parent 493bf5f commit a9d1807
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Expand Up @@ -32,10 +32,13 @@ test-jasmine: ${TARGETS}
test-jasmine-browser: create-html-runners unexpected.js
@./node_modules/.bin/serve .

TEST_SOURCES = $(shell find test -name '*.spec.js') $(shell find documentation -name '*.md')
# Pass --harmony-async-await so the AsyncFunction inspection test(s) will
# get exercised with node.js 7 on Travis. Remove this when async/await
# are no longer behind a switch:
.PHONY: test
TEST_SOURCES = $(shell find test -name '*.spec.js') $(shell find documentation -name '*.md')
test: lint
@./node_modules/.bin/mocha $(TEST_SOURCES)
@./node_modules/.bin/mocha --harmony-async-await $(TEST_SOURCES)

.PHONY: coverage
coverage:
Expand Down

0 comments on commit a9d1807

Please sign in to comment.