From 1ea41aa9a0f9c68e4fdde571229cf63314d4c8b4 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Thu, 25 Jan 2018 23:47:43 -0800 Subject: [PATCH] fix: rename to fancy-test --- README.md | 30 +++++++++++++++--------------- package.json | 10 +++++----- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 1b0c111..b4fb137 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ -fancy-mocha +fancy-test =========== -extends mocha with helpful, chainable extensions +extendable utilities for testing -[![Version](https://img.shields.io/npm/v/fancy-mocha.svg)](https://npmjs.org/package/fancy-mocha) -[![CircleCI](https://circleci.com/gh/jdxcode/fancy-mocha/tree/master.svg?style=svg)](https://circleci.com/gh/jdxcode/fancy-mocha/tree/master) -[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/jdxcode/fancy-mocha?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/fancy-mocha/branch/master) -[![Codecov](https://codecov.io/gh/jdxcode/fancy-mocha/branch/master/graph/badge.svg)](https://codecov.io/gh/jdxcode/fancy-mocha) -[![Greenkeeper](https://badges.greenkeeper.io/jdxcode/fancy-mocha.svg)](https://greenkeeper.io/) -[![Known Vulnerabilities](https://snyk.io/test/npm/fancy-mocha/badge.svg)](https://snyk.io/test/npm/fancy-mocha) -[![Downloads/week](https://img.shields.io/npm/dw/fancy-mocha.svg)](https://npmjs.org/package/fancy-mocha) -[![License](https://img.shields.io/npm/l/fancy-mocha.svg)](https://github.com/jdxcode/fancy-mocha/blob/master/package.json) +[![Version](https://img.shields.io/npm/v/fancy-test.svg)](https://npmjs.org/package/fancy-test) +[![CircleCI](https://circleci.com/gh/jdxcode/fancy-test/tree/master.svg?style=svg)](https://circleci.com/gh/jdxcode/fancy-test/tree/master) +[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/jdxcode/fancy-test?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/fancy-test/branch/master) +[![Codecov](https://codecov.io/gh/jdxcode/fancy-test/branch/master/graph/badge.svg)](https://codecov.io/gh/jdxcode/fancy-test) +[![Greenkeeper](https://badges.greenkeeper.io/jdxcode/fancy-test.svg)](https://greenkeeper.io/) +[![Known Vulnerabilities](https://snyk.io/test/npm/fancy-test/badge.svg)](https://snyk.io/test/npm/fancy-test) +[![Downloads/week](https://img.shields.io/npm/dw/fancy-test.svg)](https://npmjs.org/package/fancy-test) +[![License](https://img.shields.io/npm/l/fancy-test.svg)](https://github.com/jdxcode/fancy-test/blob/master/package.json) @@ -37,7 +37,7 @@ Mocha out of the box often requires a lot of setup and teardown code in `beforeE It should be compatible with other testing libraries as well (e.g. jest), but may require a couple small changes. If you're interested, try it out and let me know if it works. -As an example, here is what a test file might look like for an application setup with fancy-mocha. This chain could partially be stored to a variable for reuse. +As an example, here is what a test file might look like for an application setup with fancy-test. This chain could partially be stored to a variable for reuse. ```js describe('api', () => { @@ -59,7 +59,7 @@ describe('api', () => { // check to ensure the operation was successful .run(ctx => expect(ctx.user.foo).to.equal('bar')) - // end is essentially mocha's it(expectation, callback) + // it is essentially mocha's it(expectation, callback) // start the test and provide a description .it('POST /api/user/foo updates the user') }) @@ -68,12 +68,12 @@ describe('api', () => { Usage ===== -Setup is pretty easy, just install mocha and fancy-mocha, then you can use any of the examples below. +Setup is pretty easy, just install mocha and fancy-test, then you can use any of the examples below. Assume the following is before all the examples: ```js -import {fancy} from 'fancy-mocha' +import {fancy} from 'fancy-test import {expect} from 'chai' ``` @@ -272,7 +272,7 @@ Chai This library includes [chai](https://npm.im/chai) preloaded with [chai-as-promised](https://npm.im/chai-as-promised) for convenience: ```js -import {expect, fancy} from 'fancy-mocha' +import {expect, fancy} from 'fancy-test describe('has chai', () => { fancy diff --git a/package.json b/package.json index f8cd007..a2637d4 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { - "name": "fancy-mocha", - "description": "extends mocha with helpful extensions", + "name": "fancy-test", + "description": "extendable utilities for testing", "version": "0.3.3", "author": "Jeff Dickey @jdxcode", - "bugs": "https://github.com/jdxcode/fancy-mocha/issues", + "bugs": "https://github.com/jdxcode/fancy-test/issues", "dependencies": { "lodash": "^4.17.4", "stdout-stderr": "^0.1.4" @@ -43,13 +43,13 @@ "files": [ "/lib" ], - "homepage": "https://github.com/jdxcode/fancy-mocha", + "homepage": "https://github.com/jdxcode/fancy-test", "keywords": [ "dxcli" ], "license": "MIT", "main": "lib/index.js", - "repository": "jdxcode/fancy-mocha", + "repository": "jdxcode/fancy-test", "scripts": { "commitmsg": "dxcli-dev-commitmsg", "precommit": "nps lint",