{
  "schema": "https://bars.commonsware.com/conformance/schema/render-fixture.schema.json",
  "version": "0.1.0",
  "cases": [
    {
      "name": "prepend-basic",
      "spotlight": true,
      "description": "Prepends the argument to the input.",
      "template": "{{ word | prepend: \"hello \" }}",
      "context": {
        "word": "world"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "hello world"
      }
    },
    {
      "name": "prepend-empty-arg",
      "description": "Prepending an empty string leaves the input unchanged.",
      "template": "{{ word | prepend: \"\" }}",
      "context": {
        "word": "world"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "world"
      }
    },
    {
      "name": "prepend-zero-args-is-error",
      "description": "Zero arguments is an arity error.",
      "template": "{{ word | prepend }}",
      "context": {
        "word": "world"
      },
      "expect": {
        "kind": "error",
        "errorCode": "KB-2002"
      }
    },
    {
      "name": "prepend-two-args-is-error",
      "description": "Two arguments is an arity error.",
      "template": "{{ word | prepend: \"a\" \"b\" }}",
      "context": {
        "word": "world"
      },
      "expect": {
        "kind": "error",
        "errorCode": "KB-2002"
      }
    },
    {
      "name": "prepend-chained-after-upcase",
      "spotlight": true,
      "description": "Composes correctly when input arrives from a prior transform.",
      "template": "{{ word | upcase | prepend: \"say \" }}",
      "context": {
        "word": "hi"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "say HI"
      }
    }
  ]
}
