Skip to content

Commit

Permalink
Ignore actually read property name in test
Browse files Browse the repository at this point in the history
  • Loading branch information
bkimminich committed Sep 1, 2023
1 parent 2a40503 commit 8bc3a0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/unit/generateCtfdData-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('Generated CTFd data', () => {
)

it('should log generator error to console', () =>
expect(generateData({ c1: undefined }, defaultOptions)).to.be.rejectedWith('Failed to generate challenge data! Cannot read properties of undefined (reading \'difficulty\')')
expect(generateData({ c1: undefined }, defaultOptions)).to.be.rejectedWith('Failed to generate challenge data! Cannot read properties of undefined (reading')
)

it('should fill the hint property for a single text hint defined on a challenge', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/generateRtbData-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('Generated RTB data', () => {
)

it('should log generator error to console', () =>
expect(generateData({ c1: undefined }, defaultOptions)).to.be.rejectedWith('Failed to generate challenge data! Cannot read properties of undefined (reading \'category\')')
expect(generateData({ c1: undefined }, defaultOptions)).to.be.rejectedWith('Failed to generate challenge data! Cannot read properties of undefined (reading')
)

it('should contain one <box> per given challenge category', function () {
Expand Down

0 comments on commit 8bc3a0f

Please sign in to comment.