refactor: Use named exports for factories

This commit is contained in:
Faruk AYDIN
2023-10-23 10:36:44 +02:00
parent 655deb12c8
commit 6be8a581d2
12 changed files with 23 additions and 33 deletions

View File

@@ -6,7 +6,7 @@ type ConfigParams = {
value?: IJSONObject;
};
const createConfig = async (params: ConfigParams = {}) => {
export const createConfig = async (params: ConfigParams = {}) => {
const configData = {
key: params?.key || faker.lorem.word(),
value: params?.value || { data: 'sampleConfig' },
@@ -19,5 +19,3 @@ const createConfig = async (params: ConfigParams = {}) => {
return config;
};
export default createConfig;