diff --git a/test/unit/generateCtfdData-spec.js b/test/unit/generateCtfdData-spec.js index 2b64d0f..62e1fb9 100644 --- a/test/unit/generateCtfdData-spec.js +++ b/test/unit/generateCtfdData-spec.js @@ -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', () => { diff --git a/test/unit/generateRtbData-spec.js b/test/unit/generateRtbData-spec.js index 2cb7b5a..0854472 100644 --- a/test/unit/generateRtbData-spec.js +++ b/test/unit/generateRtbData-spec.js @@ -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 per given challenge category', function () {