Skip to content

Commit

Permalink
feat(awesome): awesome jest fixes #57
Browse files Browse the repository at this point in the history
  • Loading branch information
jtenner authored and hustcc committed Nov 22, 2019
1 parent db18dc3 commit a3b7b85
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Coverage Status](https://coveralls.io/repos/github/hustcc/jest-canvas-mock/badge.svg?branch=master)](https://coveralls.io/github/hustcc/jest-canvas-mock)
[![npm](https://img.shields.io/npm/v/jest-canvas-mock.svg)](https://www.npmjs.com/package/jest-canvas-mock)
[![npm](https://img.shields.io/npm/dm/jest-canvas-mock.svg)](https://www.npmjs.com/package/jest-canvas-mock)

[![Mentioned in Awesome Jest](https://awesome.re/mentioned-badge.svg)](https://github.com/jest-community/awesome-jest)

## Install

Expand All @@ -16,7 +16,6 @@ This should only be installed as a development dependency (`devDependencies`) as
npm i --save-dev jest-canvas-mock
```


## Setup

In your `package.json` under the `jest`, create a `setupFiles` array and add `jest-canvas-mock` to the array.
Expand All @@ -41,7 +40,6 @@ If you already have a `setupFiles` attribute you can also append `jest-canvas-mo

More about in [configuration section](https://facebook.github.io/jest/docs/en/configuration.html#content).


## Setup file

Alternatively you can create a new setup file which then requires this module or
Expand Down Expand Up @@ -98,7 +96,7 @@ expect(() => ctx.fill(new Path2D(), "invalid!")).toThrow(TypeError);

We try to follow the ECMAScript specification as closely as possible.

# Snapshots
## Snapshots

There are multiple ways to validate canvas state. There are currently three `static` methods attached
to the `CanvasRenderingContext2D` class. The first way to use this feature is by using the `__getEvents`
Expand Down

0 comments on commit a3b7b85

Please sign in to comment.