Skip to content

Commit

Permalink
Changes wording
Browse files Browse the repository at this point in the history
  • Loading branch information
gudjong committed Nov 29, 2024
1 parent 7bd92e8 commit e82c422
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('LimitedAccess Write Case File Guard', () => {
})

describe.each(allowedCaseFileCategories)(
'a defender can access %s',
'a defender can write %s',
(category) => {
describe('when creating a case file', () => {
let then: Then
Expand Down Expand Up @@ -93,7 +93,7 @@ describe('LimitedAccess Write Case File Guard', () => {
(category) =>
!allowedCaseFileCategories.includes(category as CaseFileCategory),
),
)('a defender can not access %s', (category) => {
)('a defender can not write %s', (category) => {
describe('when creating a case file', () => {
let then: Then

Expand Down Expand Up @@ -137,7 +137,7 @@ describe('LimitedAccess Write Case File Guard', () => {
Object.keys(UserRole).filter((role) => role !== UserRole.DEFENDER),
)('role %s', (role) => {
describe.each(Object.keys(CaseFileCategory))(
'can not access %s',
'can not write %s',
(category) => {
describe('when creating a case file', () => {
let then: Then
Expand Down Expand Up @@ -225,7 +225,7 @@ describe('LimitedAccess Write Case File Guard', () => {
})
})

describe('a defender can access DEFENDANT_CASE_FILE in indictment cases', () => {
describe('a defender can write DEFENDANT_CASE_FILE in indictment cases', () => {
describe('when creating a case file', () => {
let then: Then

Expand Down Expand Up @@ -265,7 +265,7 @@ describe('LimitedAccess Write Case File Guard', () => {

describe.each(
Object.keys(CaseType).filter((ct) => ct !== CaseType.INDICTMENT),
)('a defender can not access DEFENDANT_CASE_FILE in %s cases', (caseType) => {
)('a defender can not write DEFENDANT_CASE_FILE in %s cases', (caseType) => {
describe('when creating a case file', () => {
let then: Then

Expand Down

0 comments on commit e82c422

Please sign in to comment.