Skip to content

Commit

Permalink
Delint tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Nov 13, 2013
1 parent b9f9b5e commit 942431b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Makefile
@@ -1,10 +1,11 @@
SOURCES ?= lib/*.js
SOURCES ?= *.js
TESTS ?= test/*.test.js

test: test-mocha
test-cov: test-istanbul-mocha
view-cov: view-istanbul-report
lint: lint-jshint
lint-tests: lint-tests-jshint


# ==============================================================================
Expand Down Expand Up @@ -43,4 +44,4 @@ clean:
clobber: clean clobber-node


.PHONY: test test-cov view-cov lint submit-cov-to-coveralls ci-travis clean clobber
.PHONY: test test-cov view-cov lint lint-tests submit-cov-to-coveralls ci-travis clean clobber
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -32,7 +32,7 @@
"chai": "1.x.x"
},
"engines": {
"node": ">= 0.4.0"
"node": "*"
},
"scripts": {
"test": "node_modules/.bin/mocha --reporter spec --require test/bootstrap/node test/*.test.js"
Expand Down
5 changes: 4 additions & 1 deletion support/mk/jshint.mk
Expand Up @@ -3,5 +3,8 @@ JSHINT ?= jshint
lint-jshint:
$(JSHINT) $(SOURCES)

lint-tests-jshint:
$(JSHINT) $(TESTS)

.PHONY: lint-jshint

.PHONY: lint-jshint lint-tests-jshint
2 changes: 2 additions & 0 deletions test/package.test.js
@@ -1,3 +1,5 @@
/* global describe, it, expect */

var scripts = require('..');

describe('scripts', function() {
Expand Down
4 changes: 3 additions & 1 deletion test/resolve.test.js
@@ -1,3 +1,5 @@
/* global describe, it, expect */

var resolve = require('..').resolve;

describe('resolve', function() {
Expand Down Expand Up @@ -40,7 +42,7 @@ describe('resolve', function() {
});

it('should resolve to existing file if extension given', function() {
expect(resolve(__dirname + '/data/js-coffee/hello.coffee', ['.coffee', '.js'])).to.equal(__dirname + '/data/js-coffee/hello.coffee');
expect(resolve(__dirname + '/data/js-coffee/hello.coffee', ['.js', '.coffee'])).to.equal(__dirname + '/data/js-coffee/hello.coffee');
});
});

Expand Down

0 comments on commit 942431b

Please sign in to comment.