Skip to content

Commit

Permalink
also lint test files
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwang committed Sep 12, 2018
1 parent 41e4aaf commit 969f245
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
10 changes: 7 additions & 3 deletions package.json
Expand Up @@ -5,10 +5,10 @@
"main": "dist/index.js",
"scripts": {
"build": "yarn clean && babel src --out-dir dist",
"lint": "standard src --verbose | snazzy",
"lint:fix": "standard src --fix --verbose | snazzy",
"lint": "standard --verbose | snazzy",
"lint:fix": "standard --fix --verbose | snazzy",
"test": "NODE_ENV=test NODE_PATH=. mocha -r test/support.js --compilers js:babel-register --recursive 'test/**/*.test.js' -w",
"test:ci": "NODE_ENV=test NODE_PATH=. mocha -r test/support.js --compilers js:babel-register --recursive 'test/**/*.test.js'",
"test:ci": "yarn lint && NODE_ENV=test NODE_PATH=. mocha -r test/support.js --compilers js:babel-register --recursive 'test/**/*.test.js'",
"start": "webpack-dev-server --history-api-fallback --hot --inline --progress --colors --quiet --port 3009",
"clean": "rimraf dist",
"release:beta": "yarn run build && release pre beta && yarn publish",
Expand All @@ -21,6 +21,10 @@
"dependencies": {
"yaku": "^0.19.3"
},
"standard": {
"env": ["mocha"],
"globals": ["expect", "sinon", "$"]
},
"devDependencies": {
"babel": "^6.23.0",
"babel-cli": "^6.26.0",
Expand Down
7 changes: 1 addition & 6 deletions test/Channel.test.js
@@ -1,3 +1,4 @@
/* eslint-disable no-unused-expressions */
import Channel from 'src/Channel'

describe('Firebase::Channel', function () {
Expand Down Expand Up @@ -25,12 +26,6 @@ describe('Firebase::Channel', function () {
}
}

describe('::new({ connection, path })', function () {
it('takes a ref to init', function () {
new Channel({ ref })
})
})

describe('Setter Methods Delegation', function () {
function ensureDelegateToRef (methodName) {
describe(`#${methodName}(value)`, function () {
Expand Down
1 change: 1 addition & 0 deletions test/Connection.test.js
@@ -1,3 +1,4 @@
/* eslint-disable no-unused-expressions */
import Connection, { DEFAULT_APP_NAME } from 'src/Connection'
import Promise from 'bluebird'

Expand Down
1 change: 0 additions & 1 deletion webpack.config.js
@@ -1,5 +1,4 @@
var path = require('path')
var webpack = require('webpack')

var config = {
devtool: 'cheap-module-eval-source-map',
Expand Down

0 comments on commit 969f245

Please sign in to comment.