Skip to content

Commit eeadc1a

Browse files
committed
fixup!
1 parent 008d100 commit eeadc1a

File tree

4 files changed

+9
-16
lines changed

4 files changed

+9
-16
lines changed

src/generators/jsx-ast/utils/__tests__/buildBarProps.test.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ describe('buildMetaBarProps', () => {
7070
it('creates meta bar properties from entries', () => {
7171
const head = {
7272
basename: 'fs',
73-
path: 'fs',
73+
path: '/fs',
7474
added: 'v1.0.0',
7575
};
7676

@@ -153,6 +153,7 @@ describe('buildSideBarProps', () => {
153153
it('creates sidebar properties with versions and navigation', () => {
154154
const entry = {
155155
path: 'http',
156+
basename: 'http',
156157
introduced_in: 'v0.10.0',
157158
};
158159

src/generators/llms-txt/utils/__tests__/buildApiDocLink.test.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe('buildApiDocLink', () => {
6565
it('builds markdown link with description', () => {
6666
const entry = {
6767
heading: { data: { name: 'Test API' } },
68-
path: 'test',
68+
path: '/test',
6969
llm_description: 'Test description',
7070
};
7171

@@ -79,7 +79,7 @@ describe('buildApiDocLink', () => {
7979
it('handles doc path replacement', () => {
8080
const entry = {
8181
heading: { data: { name: 'API Method' } },
82-
path: 'path',
82+
path: '/path',
8383
content: { children: [] },
8484
};
8585

src/generators/metadata/utils/__tests__/parse.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ describe('parseApiDoc', () => {
151151
h('Stability Index'),
152152
stability('Stability: 2 - Stable'),
153153
]);
154-
const [entry] = parseApiDoc({ path: 'documentation', tree }, typeMap);
154+
const [entry] = parseApiDoc({ path: '/documentation', tree }, typeMap);
155155

156156
assert.ok(!('stability' in entry));
157157
});

src/threading/__tests__/parallel.test.mjs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ describe('createParallelWorker', () => {
8989
},
9090
];
9191

92-
const chunks = await collectChunks(
93-
worker.stream(mockInput, { typeMap: {} })
94-
);
92+
const chunks = await collectChunks(worker.stream(mockInput, {}));
9593

9694
strictEqual(chunks.length, 4);
9795

@@ -120,9 +118,7 @@ describe('createParallelWorker', () => {
120118
},
121119
];
122120

123-
const chunks = await collectChunks(
124-
worker.stream(mockInput, { typeMap: {} })
125-
);
121+
const chunks = await collectChunks(worker.stream(mockInput, {}));
126122

127123
strictEqual(chunks.length, 2);
128124

@@ -143,9 +139,7 @@ describe('createParallelWorker', () => {
143139
},
144140
];
145141

146-
const chunks = await collectChunks(
147-
worker.stream(mockInput, { typeMap: {} })
148-
);
142+
const chunks = await collectChunks(worker.stream(mockInput, {}));
149143

150144
strictEqual(chunks.length, 1);
151145
ok(Array.isArray(chunks[0]));
@@ -171,9 +165,7 @@ describe('createParallelWorker', () => {
171165
},
172166
];
173167

174-
const chunks = await collectChunks(
175-
worker.stream(mockInput, { typeMap: {} })
176-
);
168+
const chunks = await collectChunks(worker.stream(mockInput, {}));
177169

178170
strictEqual(chunks.length, 2);
179171

0 commit comments

Comments
 (0)