Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
fix: rename to fancy-test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 26, 2018
1 parent af720c9 commit 1ea41aa
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

<!-- toc -->

Expand All @@ -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', () => {
Expand All @@ -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')
})
Expand All @@ -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'
```
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 1ea41aa

Please sign in to comment.