text: /* eslint-env mocha */
  const assert = require("assert");
  const {lint} = require("..");
  
  describe("linter", () => {
    it("no-legacy-assign", () => {
      const result = lint({code: "a = b"});
      assert.deepStrictEqual(result, [
        {
          code: "no-legacy-assign",
          message: "avoid legacy assignment",
          start: 0,
          end: 5,
          line: 0,
          col: 0
        }
      ]);
    });
  });
  