#[HELP]REST API tests


#1

Hy, Sorry Guys.
i am first time testing “rest api tests” but i dont know how to solved of this problem in attach image.

and this is my code

'use strict'

const { test, trait } = use('Test/Suite')('Post')
const Post = use('App/Models/Post')

trait('Test/ApiClient')

test('get list of posts', async ({ client }) => {
  await Post.create({
    title: 'Adonis 101',
    body: 'Blog post content'
  })

  const response = await client.get('/posts').end()

  response.assertStatus(200)

  
  response.assertJSONSubset([{
    title: 'Adonis 101',
    body: 'Blog post content'
  }])
})

please help me, guys.

thank you for attention!
waiting on your news…!

Capture


#2

#:grinning:SOLVED