Skip to content

Commit

Permalink
✅ update to validate against new compromise update
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhomer committed Dec 29, 2023
1 parent 88b808b commit 8b08e65
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion packages/garden/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@garden/core": "workspace:0.0.1",
"@garden/types": "workspace:0.0.1",
"compromise": "^14.8.0",
"compromise": "^14.11.0",
"gray-matter": "^4.0.3",
"mdast-util-to-string": "^3.2.0",
"pino": "^8.17.2",
Expand Down
12 changes: 6 additions & 6 deletions packages/garden/src/feature/natural-alias.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ import { metaFrom } from "./feature-helpers";
const foo = `
# Foo
Foo linking to bars
Foo linking to the bars
`;

const bar = `
# Bar
Bar linking to [[foo]]
Bar linking to a [[foo]]
`;

const barLink = `
# Bar link
linking to [[bar]]
linking to a [[bar]]
`;

const bars = `
Expand All @@ -34,13 +34,13 @@ Gum content
const baz = `
# Baz
Baz content linking to bars
Baz content linking to the bars
`;

const fez = `
# Fez
Fez linking to bar
Fez linking to a bar
`;

describe("natural language", () => {
Expand Down Expand Up @@ -98,7 +98,7 @@ describe("natural language", () => {
expect(
meta.foo.links.filter(justNaturalLinks).map(toLinkName)
).toStrictEqual(["foo", "bar"]);
expect(meta.bar.links).toHaveLength(2);
expect(meta.bar.links).toHaveLength(1);
});

it("should have multiple natural wanted links to single explicitly linked", async () => {
Expand Down
6 changes: 3 additions & 3 deletions packages/garden/src/feature/natural-links.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ import { metaFrom } from "./feature-helpers";
const foo = `
# Foo
To bar
To a bar
`;

const bar = `
# Bar
To foo
To a foo
`;

const baz = `
# Baz
To bar
To a bar
`;

describe("natural language", () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/garden/src/garden.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe("garden", () => {
expect(linkedThings).toContain("word-2");
expect(linkedThings).toContain("word-3");
try {
expect(linkedThings.length).toBe(22);
expect(linkedThings.length).toBe(20);
} catch (e) {
throw new Error(`${e} : ${JSON.stringify(linkedThings)}`);
}
Expand All @@ -83,7 +83,7 @@ describe("garden", () => {
expect(wantedThings).toStrictEqual(["cat", "wanted"]);
const wantedNaturalThings = findWantedThings(things, naturalLinks);
try {
expect(wantedNaturalThings.length).toBe(5);
expect(wantedNaturalThings.length).toBe(3);
} catch (e) {
throw new Error(`${e} : ${JSON.stringify(wantedNaturalThings)}`);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/garden/src/page.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ describe("page", () => {
const things = await garden.meta();
const items = await getPageItems(garden.repository, things);
const names = items.map((item) => item.name);
expect(names).toHaveLength(29);
expect(names).toHaveLength(27);
});
});
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b08e65

Please sign in to comment.