not-empty-object
Version:
Shortcut. Check if a thing is a "not-empty-object". Also the opposite, if it's "not-object-or-is-empty".
20 lines (18 loc) • 594 B
Plain Text
ENV = NODE_ENV=test DEBUG=loopback:connector:*
MOCHA = ./node_modules/.bin/_mocha
MOCHA_OPTS = -b --timeout 5000 --reporter spec
TESTS = test/*.test.js
ISTANBUL = ./node_modules/.bin/istanbul
COVERALLS = ./node_modules/.bin/coveralls
lint:
@echo "Linting..."
@./node_modules/.bin/jscs index.js lib test
test: lint
@echo "Testing..."
@$(ENV) $(MOCHA) $(MOCHA_OPTS) $(TESTS)
test-cov: lint
@echo "Testing..."
@$(ENV) $(ISTANBUL) cover $(MOCHA) -- $(MOCHA_OPTS) $(TESTS)
test-coveralls: test-cov
@cat ./coverage/lcov.info | $(COVERALLS) --verbose