Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkovsky committed Apr 22, 2024
1 parent bbdb180 commit bbda215
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ yarn add captchan
## Usage

```javascript
import { createImage, Format } from '../index.js'
import { createImage, Format } from 'captchan';

// with default value
const {text, image} = createImage();
Expand Down
2 changes: 1 addition & 1 deletion __test__/index.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import test from 'ava'
import { createImage } from '../index.js'

test('create_image from native', (t) => {
t.is(createImage()[0].length, 4)
t.is(createImage().text.length, 4)
})

0 comments on commit bbda215

Please sign in to comment.