-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1408bf
commit e558e56
Showing
5 changed files
with
49 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,49 @@ | ||
SOURCES = *.js | ||
TESTS = test/*.test.js | ||
|
||
# ============================================================================== | ||
# Node Tests | ||
# ============================================================================== | ||
lint: lint-jshint | ||
test: test-mocha | ||
test-cov: test-istanbul-mocha | ||
view-cov: view-istanbul-report | ||
|
||
MOCHA = ./node_modules/.bin/mocha | ||
|
||
test: test-node | ||
test-node: node_modules | ||
$(MOCHA) \ | ||
--reporter spec \ | ||
--require test/bootstrap/node $(TESTS) | ||
# ============================================================================== | ||
# Node.js | ||
# ============================================================================== | ||
include support/mk/node.mk | ||
include support/mk/mocha.mk | ||
|
||
node_modules: | ||
npm install | ||
# ============================================================================== | ||
# Browserify | ||
# ============================================================================== | ||
BROWSERIFY_MAIN = ./index.js | ||
|
||
include support/mk/browserify.mk | ||
include support/mk/testling.mk | ||
|
||
# ============================================================================== | ||
# Code Quality | ||
# ============================================================================== | ||
include support/mk/notes.mk | ||
include support/mk/jshint.mk | ||
include support/mk/istanbul.mk | ||
|
||
JSHINT = jshint | ||
|
||
hint: lint | ||
lint: | ||
$(JSHINT) $(SOURCES) | ||
# ============================================================================== | ||
# Continuous Integration | ||
# ============================================================================== | ||
include support/mk/coveralls.mk | ||
|
||
ci-travis: test test-cov | ||
submit-coverage-to-coveralls: submit-istanbul-lcov-to-coveralls | ||
|
||
# ============================================================================== | ||
# Clean | ||
# ============================================================================== | ||
|
||
clean: | ||
rm -rf build | ||
rm -rf reports | ||
|
||
clobber: clean | ||
rm -rf node_modules | ||
rm -rf components | ||
rm -rf test/www/js/lib | ||
clobber: clean clobber-node | ||
|
||
|
||
.PHONY: test test-node hint lint clean clobber | ||
.PHONY: lint test test-cov view-cov ci-travis clean clobber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
var chai = require('chai'); | ||
|
||
window.expect = chai.expect; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
var merge = require('../index'); | ||
|
||
describe('utils-merge', function() { | ||
|
||
it('should export function', function() { | ||
expect(merge).to.be.a('function'); | ||
}); | ||
|
||
}); |