/**
 * Colour channel split tests.
 *
 * @author Matt C matt@artemisbot.uk
 *
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 */
import TestRegister from "../../TestRegister";
// Base 85 encoded
const testCard = "[encoded data, 13480 characters]";
const testCardSplit = "[encoded data, 35216 characters]";

TestRegister.addTests([{
    name: "Split Colour Channels: Default (JPEG)",
    input: testCard,
    expectedOutput: testCardSplit,
    recipeConfig: [
        { "op": "From Base64",
            "args": ["A-Za-z0-9+/=", true] },
        { "op": "Split Colour Channels",
            "args": [] },
        { "op": "To Base64",
            "args": ["A-Za-z0-9+/="] }
    ]
}]);
