Skip to content

Commit bbc4356

Browse files
committed
Animal 2.0.0
1 parent d9b1a43 commit bbc4356

File tree

5 files changed

+19
-11
lines changed

5 files changed

+19
-11
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
<a name="2.0.0"></a>
2+
# [2.0.0](https://github.com/faker-javascript/animal) (2022-01-09)
3+
4+
### BREAKING CHANGES
5+
6+
* New function `animal` istead of `fakeAnimal`
7+
18
<a name="1.0.0"></a>
29
# [1.0.0](https://github.com/faker-javascript/animal) (2022-01-09)
310
* Initial release

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ $ npm install --save @fakerjs/animal
1515
## Usage
1616

1717
```js
18-
import fakeAnimal from '@fakerjs/animal';
18+
import animal from '@fakerjs/animal';
1919

20-
fakeAnimal();
20+
animal();
2121
//=> Snow Leopard
2222

23-
fakeAnimal({type: 'zoo'});
23+
animal({type: 'zoo'});
2424
//=> Snow Leopard
2525

26-
fakeAnimal({type: 'zoo', locale: 'en_US'});
26+
animal({type: 'zoo', locale: 'en_US'});
2727
//=> Snow Leopard
2828

2929
// Allowed type: ocean, desert, grassland, forest, farm, pet, zoo

index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fakerjs/animal",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"description": "Animal package provides functionality to generate a fake animal value.",
55
"license": "MIT",
66
"repository": "faker-javascript/animal",
@@ -25,6 +25,7 @@
2525
],
2626
"keywords": [
2727
"fakerjs",
28+
"faker",
2829
"fake",
2930
"random",
3031
"animal"

test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import fakeProfession from './index.js';
1+
import animal from './index.js';
22
import test from 'ava';
33

4-
test('fakeAnimal return type to be string', t => {
5-
t.is(typeof fakeProfession(), 'string');
4+
test('animal return type to be string', t => {
5+
t.is(typeof animal(), 'string');
66
});
77

8-
test('fakeAnimal with type and locale return type to be string', t => {
9-
t.is(typeof fakeProfession({type: 'zoo', locale: 'en_US'}), 'string');
8+
test('animal with type and locale return type to be string', t => {
9+
t.is(typeof animal({type: 'zoo', locale: 'en_US'}), 'string');
1010
});

0 commit comments

Comments
 (0)