diff --git a/stepObjects/custom.steps.ts b/stepObjects/custom.steps.ts index b63b561..eba534c 100644 --- a/stepObjects/custom.steps.ts +++ b/stepObjects/custom.steps.ts @@ -1,4 +1,4 @@ -import { userSteps } from './index'; +import userSteps from './userSteps'; const faker = require('faker'); const FormData = require('form-data'); diff --git a/stepObjects/index.ts b/stepObjects/index.ts deleted file mode 100644 index 55e07ec..0000000 --- a/stepObjects/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { userSteps } from './userSteps'; \ No newline at end of file diff --git a/stepObjects/userSteps.ts b/stepObjects/userSteps.ts index 5000151..bf1f510 100644 --- a/stepObjects/userSteps.ts +++ b/stepObjects/userSteps.ts @@ -1,4 +1,4 @@ -export const userSteps = { +const userSteps = { async getUserPerPage(page = 2) { return this.sendGetRequest(`/api/users?page=${page}`); }, @@ -6,4 +6,6 @@ export const userSteps = { async getUserById(id: number) { return this.sendGetRequest(`/api/users/${id}`); } -} \ No newline at end of file +} + +export default userSteps; \ No newline at end of file