Skip to content

Commit

Permalink
fixup typos/spelling in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
smclmnt committed Jul 15, 2020
1 parent d7355cf commit 6cfc2d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# svg-jest

![npm](https://img.shields.io/npm/v/svg-jest)
![GitHub issues](https://img.shields.io/github/issues/half-halt/svg-jest)

This is a small library which transforms .SVG files for jest. It produces
and SVG in the stream.
Expand Down Expand Up @@ -39,15 +41,18 @@ The resulting HTML:

```html
<div>
<svg data-jest-file-name='an-image.svg' data-jest-svg-name='an-image' data-testid='an-image'/>
<svg
data-jest-file-name='an-image.svg'
data-jest-svg-name='an-image'
data-testid='an-image'/>
</div>
```

In additoin, any properties passed to '<MySvg>' are passed along into both the snapshot
and the resulting trees.

# usage
Configure jest:
# Usage
Configuring Jest, the example below uses package.json, but you can see: https://jestjs.io/docs/en/configuration for other examples.

```json
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svg-jest",
"version": "1.0.0",
"version": "1.0.1",
"description": "A simple transformer for .SVG for Jest",
"main": "index.js",
"repository": "https://github.com/half-halt/svg-jest.git",
Expand Down

0 comments on commit 6cfc2d4

Please sign in to comment.