import { test } from '@japa/runner'
import { Project, ProjectKind } from '../../../../src/index.js'

test.group('Project.toJSON()', () => {
  test('serializes the kind', ({ assert }) => {
    const project = new Project()
    const result = project.toJSON()
    assert.equal(result.kind, ProjectKind)
  })

  test('serializes the key', ({ assert }) => {
    const project = new Project()
    const result = project.toJSON()
    assert.equal(result.key, project.key)
  })
})
