Incorrect JSON caused error during seed

This commit is contained in:
ahstro
2015-08-10 20:08:14 +02:00
parent 7dc6b4de86
commit ce6f0b4a61
2 changed files with 11 additions and 11 deletions

View File

@ -65,14 +65,14 @@
}, },
{ {
"id": "a3f503de51cf954ede28891d", "id": "a3f503de51cf954ede28891d",
"name": "Bonfire: Symmetric Difference", "title": "Symmetric Difference",
"dashedName": "bonfire-symmetric-difference",
"difficulty": "4.02", "difficulty": "4.02",
"description": [ "description": [
"Create a function that takes two or more arrays and returns an array of the symmetric difference of the provided arrays.", "Create a function that takes two or more arrays and returns an array of the symmetric difference of the provided arrays.",
"The mathematical term symmetric difference refers to the elements in two sets that are in either the first or second set, but not in both.", "The mathematical term symmetric difference refers to the elements in two sets that are in either the first or second set, but not in both.",
"Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code." "Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code."
], ],
"type": "bonfire",
"challengeSeed": [ "challengeSeed": [
"function sym(args) {", "function sym(args) {",
" return arguments;", " return arguments;",
@ -104,8 +104,7 @@
}, },
{ {
"id": "aa2e6f85cab2ab736c9a9b24", "id": "aa2e6f85cab2ab736c9a9b24",
"name": "Bonfire: Exact Change", "title": "Exact Change",
"dashedName": "bonfire-exact-change",
"difficulty": "4.03", "difficulty": "4.03",
"description": [ "description": [
"Design a cash register drawer function that accepts purchase price as the first argument, payment as the second argument, and cash-in-drawer (cid) as the third argument.", "Design a cash register drawer function that accepts purchase price as the first argument, payment as the second argument, and cash-in-drawer (cid) as the third argument.",
@ -114,6 +113,7 @@
"Otherwise, return change in coin and bills, sorted in highest to lowest order.", "Otherwise, return change in coin and bills, sorted in highest to lowest order.",
"Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code." "Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code."
], ],
"type": "bonfire",
"challengeSeed": [ "challengeSeed": [
"function drawer(price, cash, cid) {", "function drawer(price, cash, cid) {",
" var change;", " var change;",
@ -160,13 +160,13 @@
}, },
{ {
"id": "a56138aff60341a09ed6c480", "id": "a56138aff60341a09ed6c480",
"name": "Bonfire: Inventory Update", "title": "Inventory Update",
"dashedName": "bonfire-inventory-update",
"difficulty": "4.04", "difficulty": "4.04",
"description": [ "description": [
"Compare and update inventory stored in a 2d array against a second 2d array of a fresh delivery. Update current inventory item quantity, and if an item cannot be found, add the new item and quantity into the inventory array in alphabetical order.", "Compare and update inventory stored in a 2d array against a second 2d array of a fresh delivery. Update current inventory item quantity, and if an item cannot be found, add the new item and quantity into the inventory array in alphabetical order.",
"Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code." "Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code."
], ],
"type": "bonfire",
"challengeSeed": [ "challengeSeed": [
"function inventory(arr1, arr2) {", "function inventory(arr1, arr2) {",
" // All inventory must be accounted for or you're fired!", " // All inventory must be accounted for or you're fired!",

View File

@ -4,8 +4,7 @@
"challenges": [ "challenges": [
{ {
"id": "a2f1d72d9b908d0bd72bb9f6", "id": "a2f1d72d9b908d0bd72bb9f6",
"name": "Bonfire: Make a Person", "title": "Make a Person",
"dashedName": "bonfire-make-a-person",
"difficulty": "3.01", "difficulty": "3.01",
"description": [ "description": [
"Fill in the object constructor with the methods specified in the tests.", "Fill in the object constructor with the methods specified in the tests.",
@ -14,6 +13,7 @@
"These methods must be the only available means for interacting with the object.", "These methods must be the only available means for interacting with the object.",
"Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code." "Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code."
], ],
"type": "bonfire",
"challengeSeed": [ "challengeSeed": [
"var Person = function(firstAndLast) {", "var Person = function(firstAndLast) {",
" return firstAndLast;", " return firstAndLast;",
@ -56,7 +56,7 @@
}, },
{ {
"id": "af4afb223120f7348cdfc9fd", "id": "af4afb223120f7348cdfc9fd",
"name": "Bonfire: Map the Debris", "title": "Bonfire: Map the Debris",
"dashedName": "bonfire-map-the-debris", "dashedName": "bonfire-map-the-debris",
"difficulty": "3.02", "difficulty": "3.02",
"description": [ "description": [
@ -97,8 +97,7 @@
}, },
{ {
"id": "a3f503de51cfab748ff001aa", "id": "a3f503de51cfab748ff001aa",
"name": "Bonfire: Pairwise", "title": "Pairwise",
"dashedName": "bonfire-pairwise",
"difficulty": "3.03", "difficulty": "3.03",
"description": [ "description": [
"Return the sum of all indices of elements of 'arr' that can be paired with one other element to form a sum that equals the value in the second argument 'arg'. If multiple sums are possible, return the smallest sum. Once an element has been used, it cannot be reused to pair with another.", "Return the sum of all indices of elements of 'arr' that can be paired with one other element to form a sum that equals the value in the second argument 'arg'. If multiple sums are possible, return the smallest sum. Once an element has been used, it cannot be reused to pair with another.",
@ -106,6 +105,7 @@
"pairwise([1, 3, 2, 4], 4) would only equal 1, because only the first two elements can be paired to equal 4, and the first element has an index of 0!", "pairwise([1, 3, 2, 4], 4) would only equal 1, because only the first two elements can be paired to equal 4, and the first element has an index of 0!",
"Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code." "Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code."
], ],
"type": "bonfire",
"challengeSeed": [ "challengeSeed": [
"function pairwise(arr, arg) {", "function pairwise(arr, arg) {",
" return arg;", " return arg;",