Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions lib/skill-check.gen.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spacesheep",
"version": "1.44.0",
"version": "1.45.0",
"description": "Publish web pages to spacesheep.dev from a terminal or CI: `npx spacesheep deploy ./dist`",
"bin": {
"spacesheep": "./bin/spacesheep.js"
Expand Down
7 changes: 7 additions & 0 deletions test/skill-lint.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ test("docs/ is checked as the Docs tab reads it: SUMMARY.md's dead links and pag
]);
});

test("spacesheep.yaml's makes: is one line of up to 140 characters", () => {
const ok = lint(write({ ...skill(), "my-skill/spacesheep.yaml": "makes: A hello, said back to you\n" }));
assert.strictEqual(ok.ok, true, ok.problems.join("; "));
const long = lint(write({ ...skill(), "my-skill/spacesheep.yaml": `makes: ${"x".repeat(141)}\n` }));
assert.deepStrictEqual([long.ok, long.problems], [false, ["spacesheep.yaml: makes is over 140 characters"]]);
});

test("the three refusals are the import's words, and refuse", () => {
const none = lint(write({ "README.md": "# Nothing\n", "docs/a.md": "a\n" }));
assert.deepStrictEqual([none.ok, none.problems], [false, [SAID.none]]);
Expand Down