aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/science/index.ts2
-rw-r--r--src/modules/system/index.ts8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/science/index.ts b/src/modules/science/index.ts
index 26c78014..525ff8bf 100644
--- a/src/modules/science/index.ts
+++ b/src/modules/science/index.ts
@@ -49,7 +49,7 @@ export class ScienceModule extends ModuleBase {
*/
chemicalElement(): ChemicalElement {
return this.faker.helpers.arrayElement(
- this.faker.definitions.science.chemicalElement
+ this.faker.definitions.science.chemical_element
);
}
diff --git a/src/modules/system/index.ts b/src/modules/system/index.ts
index 3468bbb0..1fcc9be3 100644
--- a/src/modules/system/index.ts
+++ b/src/modules/system/index.ts
@@ -114,7 +114,7 @@ export class SystemModule extends ModuleBase {
* @since 3.1.0
*/
mimeType(): string {
- const mimeTypeKeys = Object.keys(this.faker.definitions.system.mimeTypes);
+ const mimeTypeKeys = Object.keys(this.faker.definitions.system.mime_types);
return this.faker.helpers.arrayElement(mimeTypeKeys);
}
@@ -152,7 +152,7 @@ export class SystemModule extends ModuleBase {
* @since 3.1.0
*/
fileType(): string {
- const mimeTypes = this.faker.definitions.system.mimeTypes;
+ const mimeTypes = this.faker.definitions.system.mime_types;
const typeSet = new Set(
Object.keys(mimeTypes).map((key) => key.split('/')[0])
@@ -172,7 +172,7 @@ export class SystemModule extends ModuleBase {
* @since 3.1.0
*/
fileExt(mimeType?: string): string {
- const mimeTypes = this.faker.definitions.system.mimeTypes;
+ const mimeTypes = this.faker.definitions.system.mime_types;
if (typeof mimeType === 'string') {
return this.faker.helpers.arrayElement(mimeTypes[mimeType].extensions);
@@ -193,7 +193,7 @@ export class SystemModule extends ModuleBase {
* @since 3.1.0
*/
directoryPath(): string {
- const paths = this.faker.definitions.system.directoryPaths;
+ const paths = this.faker.definitions.system.directory_paths;
return this.faker.helpers.arrayElement(paths);
}