From d6ea0a3b4031d7400d939cf736ff189c13f33d75 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Mon, 25 Apr 2016 14:34:59 +0200 Subject: [PATCH] v3: fix setting challenge.official --- test/api/v3/integration/challenges/POST-challenges.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/api/v3/integration/challenges/POST-challenges.test.js b/test/api/v3/integration/challenges/POST-challenges.test.js index 1b80266ab7..e296403f4e 100644 --- a/test/api/v3/integration/challenges/POST-challenges.test.js +++ b/test/api/v3/integration/challenges/POST-challenges.test.js @@ -236,7 +236,7 @@ describe('POST /challenges', () => { official: true, }); - expect(challenge.official).to.be.undefined; + expect(challenge.official).to.eql(false); }); it('returns an error when challenge validation fails; doesn\'s save user or group', async () => { @@ -284,7 +284,7 @@ describe('POST /challenges', () => { expect(challenge.name).to.eql(name); expect(challenge.shortName).to.eql(shortName); expect(challenge.description).to.eql(description); - expect(challenge.official).to.be.undefined; + expect(challenge.official).to.eql(false); expect(challenge.group).to.eql({ _id: group._id, privacy: group.privacy,