mirror of
https://github.com/JimLiu/baoyu-skills.git
synced 2026-07-13 22:29:48 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 60363fc2df | |||
| 28ec1053f6 |
@@ -6,7 +6,7 @@
|
|||||||
},
|
},
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"description": "Skills shared by Baoyu for improving daily work efficiency",
|
"description": "Skills shared by Baoyu for improving daily work efficiency",
|
||||||
"version": "1.73.0"
|
"version": "1.73.1"
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
English | [中文](./CHANGELOG.zh.md)
|
English | [中文](./CHANGELOG.zh.md)
|
||||||
|
|
||||||
|
## 1.73.1 - 2026-03-18
|
||||||
|
|
||||||
|
### Refactor
|
||||||
|
- `baoyu-danger-x-to-markdown`: migrate tests from bun:test to node:test
|
||||||
|
|
||||||
## 1.73.0 - 2026-03-18
|
## 1.73.0 - 2026-03-18
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|||||||
@@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
[English](./CHANGELOG.md) | 中文
|
[English](./CHANGELOG.md) | 中文
|
||||||
|
|
||||||
|
## 1.73.1 - 2026-03-18
|
||||||
|
|
||||||
|
### 重构
|
||||||
|
- `baoyu-danger-x-to-markdown`:测试从 bun:test 迁移至 node:test
|
||||||
|
|
||||||
## 1.73.0 - 2026-03-18
|
## 1.73.0 - 2026-03-18
|
||||||
|
|
||||||
### 新功能
|
### 新功能
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# CLAUDE.md
|
# CLAUDE.md
|
||||||
|
|
||||||
Claude Code marketplace plugin providing AI-powered content generation skills. Version: **1.73.0**.
|
Claude Code marketplace plugin providing AI-powered content generation skills. Version: **1.73.1**.
|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { expect, test } from "bun:test";
|
import assert from "node:assert/strict";
|
||||||
|
import test from "node:test";
|
||||||
|
|
||||||
import { formatArticleMarkdown } from "./markdown.js";
|
import { formatArticleMarkdown } from "./markdown.js";
|
||||||
|
|
||||||
@@ -40,10 +41,10 @@ test("formatArticleMarkdown renders MARKDOWN entities from atomic blocks", () =>
|
|||||||
|
|
||||||
const { markdown } = formatArticleMarkdown(article);
|
const { markdown } = formatArticleMarkdown(article);
|
||||||
|
|
||||||
expect(markdown).toContain("Before the snippet.");
|
assert.ok(markdown.includes("Before the snippet."));
|
||||||
expect(markdown).toContain("```python\nprint('hello from x article')\n```");
|
assert.ok(markdown.includes("```python\nprint('hello from x article')\n```"));
|
||||||
expect(markdown).toContain("After the snippet.");
|
assert.ok(markdown.includes("After the snippet."));
|
||||||
expect(markdown).toBe(`# Atomic Markdown Example
|
assert.strictEqual(markdown, `# Atomic Markdown Example
|
||||||
|
|
||||||
Before the snippet.
|
Before the snippet.
|
||||||
|
|
||||||
@@ -108,11 +109,11 @@ test("formatArticleMarkdown renders article video media as poster plus video lin
|
|||||||
|
|
||||||
const { markdown } = formatArticleMarkdown(article);
|
const { markdown } = formatArticleMarkdown(article);
|
||||||
|
|
||||||
expect(markdown).toContain("Intro text.");
|
assert.ok(markdown.includes("Intro text."));
|
||||||
expect(markdown).toContain(``);
|
assert.ok(markdown.includes(``));
|
||||||
expect(markdown).toContain(`[video](${videoUrl})`);
|
assert.ok(markdown.includes(`[video](${videoUrl})`));
|
||||||
expect(markdown).not.toContain(``);
|
assert.ok(!markdown.includes(``));
|
||||||
expect(markdown).not.toContain("## Media");
|
assert.ok(!markdown.includes("## Media"));
|
||||||
});
|
});
|
||||||
|
|
||||||
test("formatArticleMarkdown renders unused article videos in trailing media section", () => {
|
test("formatArticleMarkdown renders unused article videos in trailing media section", () => {
|
||||||
@@ -143,10 +144,10 @@ test("formatArticleMarkdown renders unused article videos in trailing media sect
|
|||||||
|
|
||||||
const { markdown, coverUrl } = formatArticleMarkdown(article);
|
const { markdown, coverUrl } = formatArticleMarkdown(article);
|
||||||
|
|
||||||
expect(coverUrl).toBeNull();
|
assert.strictEqual(coverUrl, null);
|
||||||
expect(markdown).toContain("## Media");
|
assert.ok(markdown.includes("## Media"));
|
||||||
expect(markdown).toContain(``);
|
assert.ok(markdown.includes(``));
|
||||||
expect(markdown).toContain(`[video](${videoUrl})`);
|
assert.ok(markdown.includes(`[video](${videoUrl})`));
|
||||||
});
|
});
|
||||||
|
|
||||||
test("formatArticleMarkdown keeps coverUrl as preview image for video cover media", () => {
|
test("formatArticleMarkdown keeps coverUrl as preview image for video cover media", () => {
|
||||||
@@ -174,5 +175,5 @@ test("formatArticleMarkdown keeps coverUrl as preview image for video cover medi
|
|||||||
|
|
||||||
const { coverUrl } = formatArticleMarkdown(article);
|
const { coverUrl } = formatArticleMarkdown(article);
|
||||||
|
|
||||||
expect(coverUrl).toBe(posterUrl);
|
assert.strictEqual(coverUrl, posterUrl);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user