text: import test from "ava";
  import FormLinker from "../src";
  
  test("set error", t => {
    let fl = new FormLinker({
      data: {
        foo: "bar"
      },
      schema: {
        foo: "string"
      }
    });
  
    fl.setError("foo", ["new bar"]);
    t.deepEqual(fl.getError("foo"), ["new bar"]);
  });
  
  test("set empty error", t => {
    let fl = new FormLinker({
      data: {
        foo: "bar"
      },
      schema: {
        foo: "string"
      }
    });
  
    fl.setError("foo", ["new bar"]);
    t.deepEqual(fl.getError("foo"), ["new bar"]);
    fl.setError("foo", []);
    t.deepEqual(fl.getError("foo"), []);
  });
  