Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ncalteen committed Aug 29, 2024
1 parent 46446c1 commit d7a85a2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions __tests__/validate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,20 @@ describe('validate()', () => {

const errors: string[] = await validate(
{
read_team: {
'read-team': {
label: 'test',
type: 'input',
required: true
},
write_team: {
'write-team': {
label: 'test',
type: 'input',
required: true
}
},
{
read_team: 'IssueOps-Demo-Readers',
write_team: 'IssueOps-Demo-Writers'
'read-team': 'IssueOps-Demo-Readers',
'write-team': 'IssueOps-Demo-Writers'
},
process.cwd()
)
Expand All @@ -160,27 +160,27 @@ describe('validate()', () => {

const errors: string[] = await validate(
{
read_team: {
'read-team': {
label: 'test',
type: 'input',
required: true
},
write_team: {
'write-team': {
label: 'test',
type: 'input',
required: true
}
},
{
read_team: 'IssueOps-Demo-Readers',
write_team: 'IssueOps-Demo-Writers'
'read-team': 'IssueOps-Demo-Readers',
'write-team': 'IssueOps-Demo-Writers'
},
process.cwd()
)

expect(errors).toEqual([
"Invalid read_team: Team 'IssueOps-Demo-Readers' does not exist",
"Invalid write_team: Team 'IssueOps-Demo-Writers' does not exist"
"Invalid read-team: Team 'IssueOps-Demo-Readers' does not exist",
"Invalid write-team: Team 'IssueOps-Demo-Writers' does not exist"
])

existsSyncSpy.mockRestore()
Expand Down

0 comments on commit d7a85a2

Please sign in to comment.