Skip to content

Commit

Permalink
fix: export custom steps
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Aug 10, 2023
1 parent b64ec6a commit 1c3857c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stepObjects/custom.steps.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userSteps } from './index';
import userSteps from './userSteps';

const faker = require('faker');
const FormData = require('form-data');
Expand Down
1 change: 0 additions & 1 deletion stepObjects/index.ts

This file was deleted.

6 changes: 4 additions & 2 deletions stepObjects/userSteps.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
export const userSteps = {
const userSteps = {
async getUserPerPage(page = 2) {
return this.sendGetRequest(`/api/users?page=${page}`);
},

async getUserById(id: number) {
return this.sendGetRequest(`/api/users/${id}`);
}
}
}

export default userSteps;

0 comments on commit 1c3857c

Please sign in to comment.