{
  "schema": "https://bars.commonsware.com/conformance/schema/render-fixture.schema.json",
  "version": "0.1.0",
  "cases": [
    {
      "name": "remove-all-occurrences",
      "spotlight": true,
      "description": "Removes every occurrence of the argument substring.",
      "template": "{{ phrase | remove: \"o\" }}",
      "context": {
        "phrase": "foo boo"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "f b"
      }
    },
    {
      "name": "remove-target-absent",
      "description": "If the substring is absent, output equals input.",
      "template": "{{ phrase | remove: \"xyz\" }}",
      "context": {
        "phrase": "hello world"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "hello world"
      }
    },
    {
      "name": "remove-empty-arg",
      "description": "Removing an empty string leaves the input unchanged.",
      "template": "{{ phrase | remove: \"\" }}",
      "context": {
        "phrase": "hello"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "hello"
      }
    },
    {
      "name": "remove-zero-args-is-error",
      "description": "Zero arguments is an arity error.",
      "template": "{{ phrase | remove }}",
      "context": {
        "phrase": "hello"
      },
      "expect": {
        "kind": "error",
        "errorCode": "KB-2002"
      }
    },
    {
      "name": "remove-two-args-is-error",
      "description": "Two arguments is an arity error.",
      "template": "{{ phrase | remove: \"a\" \"b\" }}",
      "context": {
        "phrase": "hello"
      },
      "expect": {
        "kind": "error",
        "errorCode": "KB-2002"
      }
    },
    {
      "name": "remove-chained-after-upcase",
      "spotlight": true,
      "description": "Composes correctly when input arrives from a prior transform.",
      "template": "{{ phrase | upcase | remove: \"L\" }}",
      "context": {
        "phrase": "hello"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "HEO"
      }
    }
  ]
}
