Fixed formatting

This commit is contained in:
Vimal-Raghubir 2018-03-25 20:44:41 -04:00
parent ad47b42a6c
commit 2a2d8e9e67

View file

@ -17,107 +17,107 @@ TestRegister.addTests([
recipeConfig: [ recipeConfig: [
{ {
op: "String to CSV", op: "String to CSV",
args: [','], args: [","],
}, },
], ],
}, },
{ {
name: "Testing hello world parsed to CSV", name: "Testing hello world parsed to CSV",
input: "['hello', 'world']", input: "['hello', 'world']",
expectedOutput: "hello;world", expectedOutput: "hello;world",
recipeConfig: [ recipeConfig: [
{ {
op: "String to CSV", op: "String to CSV",
args: [';'], args: [";"],
}, },
], ],
}, },
{ {
name: "Testing false parsed to CSV", name: "Testing false parsed to CSV",
input: false, input: false,
expectedOutput: "The passed in data is not a string that can be converted to a CSV.", expectedOutput: "The passed in data is not a string that can be converted to a CSV.",
recipeConfig: [ recipeConfig: [
{ {
op: "String to CSV", op: "String to CSV",
args: [','], args: [","],
}, },
], ],
}, },
{ {
name: "Testing ||| parsed to CSV", name: "Testing ||| parsed to CSV",
input: "|||", input: "|||",
expectedOutput: "|||||", expectedOutput: "|||||",
recipeConfig: [ recipeConfig: [
{ {
op: "String to CSV", op: "String to CSV",
args: ['|'], args: ["|"],
}, },
], ],
}, },
{ {
name: "Testing 0 parsed to CSV", name: "Testing 0 parsed to CSV",
input: 0, input: 0,
expectedOutput: "The passed in data is not a string that can be converted to a CSV.", expectedOutput: "The passed in data is not a string that can be converted to a CSV.",
recipeConfig: [ recipeConfig: [
{ {
op: "String to CSV", op: "String to CSV",
args: [','], args: [","],
}, },
], ],
}, },
{ {
name: "Testing 1,2,3,\n1,2, parsed to String", name: "Testing 1,2,3,\n1,2, parsed to String",
input: "1,2,3,\n,1,2,", input: "1,2,3,\n,1,2,",
expectedOutput: "[[1,2,3],[1,2]]", expectedOutput: "[[1,2,3],[1,2]]",
recipeConfig: [ recipeConfig: [
{ {
op: "CSV to String", op: "CSV to String",
args: [','], args: [","],
}, },
], ],
}, },
{ {
name: "Testing \n\n\n parsed to String", name: "Testing \n\n\n parsed to String",
input: "\n\n\n", input: "\n\n\n",
expectedOutput: "[[],[],[]]", expectedOutput: "[[],[],[]]",
recipeConfig: [ recipeConfig: [
{ {
op: "CSV to String", op: "CSV to String",
args: [','], args: [","],
}, },
], ],
}, },
{ {
name: "Testing 1,2,3,4,5 parsed to String", name: "Testing 1,2,3,4,5 parsed to String",
input: "1,2,3,4,5", input: "1,2,3,4,5",
expectedOutput: "[[1,2,3,4,5]]", expectedOutput: "[[1,2,3,4,5]]",
recipeConfig: [ recipeConfig: [
{ {
op: "CSV to String", op: "CSV to String",
args: ['|'], args: ["|"],
}, },
], ],
}, },
{ {
name: "Testing 0 parsed to CSV", name: "Testing 0 parsed to CSV",
input: 0, input: 0,
expectedOutput: "The passed in data is not a string that can be converted to a CSV.", expectedOutput: "The passed in data is not a string that can be converted to a CSV.",
recipeConfig: [ recipeConfig: [
{ {
op: "CSV to String", op: "CSV to String",
args: [','], args: [","],
}, },
], ],
}, },
{ {
name: "Testing false parsed to CSV", name: "Testing false parsed to CSV",
input: false, input: false,
expectedOutput: "The passed in data is not a string that can be converted to a CSV.", expectedOutput: "The passed in data is not a string that can be converted to a CSV.",
recipeConfig: [ recipeConfig: [
{ {
op: "CSV to String", op: "CSV to String",
args: [','], args: [","],
}, },
], ],
}, },
]); ]);