Skip to content

Commit

Permalink
test(schema): Update workspace schema tests to include IDs workspace …
Browse files Browse the repository at this point in the history
…properties
  • Loading branch information
muntaxir4 committed Nov 11, 2024
1 parent 551f55a commit ced1b1d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/schema/tests/workspace.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,27 +402,31 @@ describe('Workspace Schema Tests', () => {
const result = GlobalSearchResponseSchema.safeParse({
projects: [
{
id: 'project-id',
slug: 'project-slug',
name: 'Project Name',
description: 'Project Description'
}
],
environments: [
{
id: 'environment-id',
slug: 'environment-slug',
name: 'Environment Name',
description: 'Environment Description'
}
],
secrets: [
{
id: 'secret-id',
slug: 'secret-slug',
name: 'Secret Name',
note: 'Secret Note'
}
],
variables: [
{
id: 'variable-id',
slug: 'variable-slug',
name: 'Variable Name',
note: 'Variable Note'
Expand All @@ -448,10 +452,6 @@ describe('Workspace Schema Tests', () => {
})

expect(result.success).toBe(false)
expect(result.error?.issues[0]?.path).toEqual([
'projects',
0,
'description'
])
expect(result.error?.issues[0]?.path).toEqual(['projects', 0, 'id'])
})
})

0 comments on commit ced1b1d

Please sign in to comment.