Skip to content

Commit 5b9b787

Browse files
committed
updated
1 parent 1367342 commit 5b9b787

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

docs/guide/upgrading.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -484,12 +484,12 @@ Renamed deprecated locale aliases `cz`, `en_IND`, `ge` and removed `global`.
484484

485485
The following locale definitions have been renamed to use singular keys and file names:
486486

487-
| Old | Replacement |
488-
| ----------------------------------------- | ------------------------------------------- |
487+
| Old | Replacement |
488+
| ------------------------------------------- | -------------------------------------------- |
489489
| `faker.definitions.science.chemicalElement` | `faker.definitions.science.chemical_element` |
490-
| `faker.definitions.system.directoryPaths` | `faker.definitions.system.directory_path` |
491-
| `faker.definitions.system.mimeTypes` | `faker.definitions.system.mime_type` |
492-
| `faker.definitions.lorem.words` | `faker.definitions.lorem.word` |
490+
| `faker.definitions.system.directoryPaths` | `faker.definitions.system.directory_path` |
491+
| `faker.definitions.system.mimeTypes` | `faker.definitions.system.mime_type` |
492+
| `faker.definitions.lorem.words` | `faker.definitions.lorem.word` |
493493

494494
With that now all our locale data use the following naming scheme:
495495

pnpm-lock.yaml

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

test/modules/lorem.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('lorem', () => {
4343

4444
expect(actual).toBeTruthy();
4545
expect(actual).toBeTypeOf('string');
46-
expect(faker.definitions.lorem.words).toContain(actual);
46+
expect(faker.definitions.lorem.word).toContain(actual);
4747
});
4848

4949
// INFO @Shinigami92 2022-02-11: Seems there are only words with a max length of 14 characters
@@ -54,7 +54,7 @@ describe('lorem', () => {
5454

5555
expect(actual).toBeTruthy();
5656
expect(actual).toBeTypeOf('string');
57-
expect(faker.definitions.lorem.words).toContain(actual);
57+
expect(faker.definitions.lorem.word).toContain(actual);
5858
expect(actual).toHaveLength(length);
5959
}
6060
);
@@ -72,7 +72,7 @@ describe('lorem', () => {
7272
expect(words).toHaveLength(3);
7373

7474
for (const word of words) {
75-
expect(faker.definitions.lorem.words).toContain(word);
75+
expect(faker.definitions.lorem.word).toContain(word);
7676
}
7777
});
7878

@@ -89,7 +89,7 @@ describe('lorem', () => {
8989
expect(words).toHaveLength(num);
9090

9191
for (const word of words) {
92-
expect(faker.definitions.lorem.words).toContain(word);
92+
expect(faker.definitions.lorem.word).toContain(word);
9393
}
9494
}
9595
);

0 commit comments

Comments
 (0)