import { test } from '@japa/runner'
import { Folder, FolderKind } from '../../../../src/index.js'

test.group('Folder.toJSON()', () => {
  test('serializes the kind', ({ assert }) => {
    const folder = new Folder()
    const result = folder.toJSON()
    assert.equal(result.kind, FolderKind)
  })

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