Skip to content

feature: implememted model, validation and controller test#11

Open
GreyyDaze wants to merge 3 commits intodev-aminahfrom
feature/day-10-testing-backend-aminah
Open

feature: implememted model, validation and controller test#11
GreyyDaze wants to merge 3 commits intodev-aminahfrom
feature/day-10-testing-backend-aminah

Conversation

@GreyyDaze
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread adonisrc.ts
timeout: 2000,
},
{
files: ['tests/unit/controllers/auth_oat_controller.spec.ts'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you add specific controller here? i think you should add something like
/**/*.spec(.ts|.js) at the end


return withTryCatch(
async () => {
console.log(user, 'user')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove logs

async index({ inertia, request }: HttpContext) {
const { sortBy = 'created_at', sortOrder = 'desc' } = request.qs()
const validSortFields = ['created_at', 'updated_at']
console.log(sortBy, 'sortBy')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove logs pls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants