/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at . */ // @flow import { highlightMatches } from "../project-search"; describe("project search - highlightMatches", () => { it("simple", () => { const lineMatch = { type: "MATCH", value: "This is a sample sentence", line: 1, column: 17, matchIndex: 17, match: "sentence", sourceId: "source", text: "text" }; expect(highlightMatches(lineMatch)).toMatchSnapshot(); }); });