Skip to content

Commit

Permalink
Update fixtures to fit new interface def
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonherbert committed Aug 27, 2020
1 parent 59a2538 commit 9b9090d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ts/state/test/reducer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ describe("Action handlers", () => {
it("should add hover decorations", () => {
const { state, tr } = createInitialData();
const output: IMatch = {
ruleId: "ruleId",
matchId: "match-id",
from: 0,
to: 5,
Expand Down Expand Up @@ -540,6 +541,7 @@ describe("Action handlers", () => {
it("should remove hover decorations", () => {
const { state, tr } = createInitialData();
const output: IMatch = {
ruleId: "ruleId",
matchId: "match-id",
from: 0,
to: 5,
Expand Down Expand Up @@ -578,6 +580,7 @@ describe("Action handlers", () => {
const { state } = createInitialData();
const currentMatches: IMatch[] = [
{
ruleId: "ruleId",
matchId: "match-id",
from: 1,
to: 7,
Expand Down Expand Up @@ -622,6 +625,7 @@ describe("Action handlers", () => {
...state,
currentMatches: [
{
ruleId: "ruleId",
matchId: "match-id",
text: "example",
from: 1,
Expand Down
2 changes: 2 additions & 0 deletions src/ts/state/test/selectors.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ describe("selectors", () => {
const { state } = createInitialData();
const currentMatches: IMatch[] = [
{
ruleId: "ruleId",
matchId: "match-id",
from: 0,
to: 5,
Expand Down Expand Up @@ -164,6 +165,7 @@ describe("selectors", () => {
const { state } = createInitialData();
const currentMatches: IMatch[] = [
{
ruleId: "ruleId",
matchId: "match-id",
from: 0,
to: 5,
Expand Down
1 change: 1 addition & 0 deletions src/ts/test/createTyperighterPlugin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ describe("createTyperighterPlugin", () => {
matches: [
{
...blocks[0],
ruleId: "ruleId",
matchId: "matchId",
matchedText: blocks[0].text,
message: "Example message",
Expand Down
2 changes: 2 additions & 0 deletions src/ts/test/helpers/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export const createMatcherResponse = (
};

const newMatch = {
ruleId: "ruleId",
category,
matchedText: "block text",
message: "annotation",
Expand Down Expand Up @@ -125,6 +126,7 @@ export const createMatch = (
colour: "eeeee"
}
): IMatch => ({
ruleId: "ruleId",
category,
matchedText: "block text",
message: "annotation",
Expand Down

0 comments on commit 9b9090d

Please sign in to comment.