From 31aafd300c2f08e9c4842d4e5b0214e9509af6fd Mon Sep 17 00:00:00 2001 From: Nathan Leniz Date: Sat, 14 Feb 2015 15:54:51 -0500 Subject: [PATCH 1/2] Removing a very buggy challenge --- seed_data/bonfires.json | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/seed_data/bonfires.json b/seed_data/bonfires.json index b41aaffca7..2dcd441810 100644 --- a/seed_data/bonfires.json +++ b/seed_data/bonfires.json @@ -220,20 +220,6 @@ "assert.deepEqual(bouncer([false, null, 0]), [], 'should return empty array if all elements are falsey');" ] }, - { - "_id":"a8e512fbe388ac2f9198f0fa", - "name":"Where art thou", - "difficulty":"1.55", - "description":[ - "Maketh a function that looks through a list (first argument) and returns an array of all objects that have equivalent property values (second argument)." - ], - "challengeEntryPoint":"where([{ first: 'Romeo', last: 'Montague' }, { first: 'Mercutio', last: null }, { first: 'Tybalt', last: 'Capulet' }], { last: 'Capulet' });", - "challengeSeed":"function where(collection, source) {\n var arr = [];\r\n // What's in a name?\r\n return arr;\r\n}", - "tests":[ - "assert.deepEqual(where([{ first: 'Romeo', last: 'Montague' }, { first: 'Mercutio', last: null }, { first: 'Tybalt', last: 'Capulet' }], { last: 'Capulet' }), [{ first: 'Tybalt', last: 'Capulet' }], 'should return an array of objects');", - "assert.deepEqual(where([{ 'a': 1 }, { 'a': 1 }, { 'a': 1, 'b': 2 }], { 'a': 1 }), [{ 'a': 1 }, { 'a': 1 }, { 'a': 1 }], 'should return with multiples');" - ] - }, { "_id":"a39963a4c10bc8b4d4f06d7e", "name":"Seek and Destroy", From 20b37ac4702688e323a2007c7f50de2cec81ba8a Mon Sep 17 00:00:00 2001 From: Nathan Leniz Date: Sat, 14 Feb 2015 19:16:18 -0500 Subject: [PATCH 2/2] Clean up meet bonfire --- seed_data/bonfires.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/seed_data/bonfires.json b/seed_data/bonfires.json index 2dcd441810..714c8a5015 100644 --- a/seed_data/bonfires.json +++ b/seed_data/bonfires.json @@ -7,13 +7,14 @@ "Click the button below for further instructions.", "Your goal is to fix the failing test.", "First, run all the tests by clicking \"Run code\" or by pressing Control + Enter", - "The failing test is in red. Fix the code so that all tests pass. Then you can move on to the next Bonfire." + "The failing test is in red. Fix the code so that all tests pass. Then you can move on to the next Bonfire.", + "Make this function return true no matter what." ], "tests": [ - "expect(meetBonfire(\"test\")).to.be.a(\"boolean\");", - "expect(meetBonfire(\"test\")).to.be.true;" + "expect(meetBonfire()).to.be.a(\"boolean\");", + "expect(meetBonfire()).to.be.true;" ], - "challengeSeed": "function meetBonfire(argument) {\n // Good luck!\n console.log(\"you can read this function's argument in the developer tools\", argument);\n\n return false;\n}\n\n", + "challengeSeed": "function meetBonfire(argument) {\n // Good luck!\n console.log(\"you can read console.log statements for debugging purposes in the developer tools\");\n\n return false;\n}\n\n", "challengeEntryPoint": "meetBonfire(\"You can do this!\");" }, {