Skip to content

Commit

Permalink
Lint test directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jdlehman committed Jul 25, 2015
1 parent 62ddf95 commit bf32bbb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"main": "dist/switcheroo.min.js",
"scripts": {
"build": "./node_modules/.bin/webpack",
"lint": "./node_modules/.bin/eslint ./modules",
"lint-src": "./node_modules/.bin/eslint ./modules",
"lint-test": "./node_modules/.bin/eslint ./test",
"lint": "npm run lint-src && npm run lint-test",
"test": "./node_modules/.bin/karma start --single-run"
},
"repository": {
Expand Down
7 changes: 6 additions & 1 deletion test/components/Switcher_test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {Component} from 'react';
import React, {Component, PropTypes} from 'react';
import {assert} from 'chai';
import sinon from 'sinon';
import window from 'window';
Expand All @@ -10,6 +10,11 @@ class Handler extends Component {
}
}

Handler.displayName = 'Handler';
Handler.propTypes = {
text: PropTypes.string
};

describe('Switcher', function() {
describe('#getLocation', function() {
describe('using location.hash', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/test_index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// require all modules ending in "_test" from the
// current directory and all subdirectories
var testsContext = require.context(".", true, /_test$/);
var testsContext = require.context('.', true, /_test$/);
testsContext.keys().forEach(testsContext);

0 comments on commit bf32bbb

Please sign in to comment.