From 2494455873b74976da4011d153a4de742a67c78a Mon Sep 17 00:00:00 2001 From: tclindner Date: Wed, 2 Aug 2017 19:31:07 -0500 Subject: [PATCH] Bump deps and convert to chai --- CHANGELOG.md | 4 ++++ package.json | 20 +++++++++----------- test/tests.js | 10 ++++++---- 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09a4dcf..536116f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,5 +12,9 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Removed +## [1.1.0] - 2017-08-02 +### Changed +- Bump dependencies + ## [1.0.0] - 2017-02-18 - First release diff --git a/package.json b/package.json index c23e87b..29dc5b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "npm-package-json-lint-config-tc", - "version": "1.0.0", + "version": "1.1.0", "description": "npm-package-json-lint shareable config for TC's projects", "keywords": [ "lint", @@ -24,23 +24,21 @@ "main": "index.js", "scripts": { "eslint": "eslint *.js --format=node_modules/eslint-formatter-pretty", - "jscs": "jscs *.js", "jsonlint": "jsonlint *.json", - "lint": "npm run npmpackagejsonlint && npm run eslint && npm run jscs && npm run jsonlint", + "lint": "npm run npmpackagejsonlint && npm run eslint && npm run jsonlint", "npmpackagejsonlint": "pjl-cli -c .npmpackagejsonlintrc.json", - "test": "mocha test" + "test": "mocha" }, "devDependencies": { - "eslint": "^3.15.0", - "eslint-config-tc": "^1.4.0", + "chai": "^4.1.0", + "eslint": "^4.3.0", + "eslint-config-tc": "^2.1.0", "eslint-formatter-pretty": "^1.1.0", "is-plain-obj": "^1.1.0", - "jscs": "^3.0.7", "jsonlint": "^1.6.2", - "mocha": "^3.2.0", - "npm-package-json-lint": "^2.0.2", - "should": "^11.2.0", - "temp-write": "^3.1.0" + "mocha": "^3.5.0", + "npm-package-json-lint": "^2.6.0", + "temp-write": "^3.3.0" }, "peerDependencies": { "npm-package-json-lint": ">= 2" diff --git a/test/tests.js b/test/tests.js index b0dcc05..0c8d223 100644 --- a/test/tests.js +++ b/test/tests.js @@ -1,20 +1,22 @@ 'use strict'; -const should = require('should'); +const chai = require('chai'); const isPlainObj = require('is-plain-obj'); const config = require('./../index.js'); const lint = require('./helper/testHelper.js'); +const should = chai.should(); + describe('npm-package-json-lint config tests', () => { context('npm-package-json-lint config object', () => { it('should be an object', () => { - isPlainObj(config).should.equal(true); + isPlainObj(config).should.be.true; }); }); context('rules', () => { it('should be an object', () => { - isPlainObj(config.rules).should.equal(true); + isPlainObj(config.rules).should.be.true; }); }); @@ -27,7 +29,7 @@ describe('npm-package-json-lint config tests', () => { const expectedErrorCount = 14; results.errors.length.should.equal(expectedErrorCount); - results.hasOwnProperty('warnings').should.be.false(); + results.hasOwnProperty('warnings').should.be.false; }); }); });