From 8bc3a0fd8395b26a88802f43f68627281c8b75c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kimminich?= Date: Fri, 1 Sep 2023 10:54:52 +0200 Subject: [PATCH] Ignore actually read property name in test --- test/unit/generateCtfdData-spec.js | 2 +- test/unit/generateRtbData-spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 () {