docs: remove deprecated integration checklists and documentation files
This commit is contained in:
@@ -176,6 +176,7 @@ export class GraphRuntimeAdapter {
|
||||
const lines = content.split('\n');
|
||||
|
||||
return {
|
||||
noteId: note?.id || note?.path || note?.filePath || note?.name || '',
|
||||
filePath: note?.filePath || note?.path || '',
|
||||
fileName: note?.name || '',
|
||||
fileNameWithExt: note?.name || '',
|
||||
|
||||
@@ -54,24 +54,39 @@ describe('GraphSelectors', () => {
|
||||
expect(result.nodes[0].id).toBe('1');
|
||||
});
|
||||
|
||||
it('should filter by tags only', () => {
|
||||
it('should include synthetic tag nodes when enabled', () => {
|
||||
const rawData = signal(createTestData());
|
||||
const config = signal({ ...DEFAULT_GRAPH_CONFIG, showTags: true });
|
||||
const filtered = createFilteredGraphData(rawData, config);
|
||||
|
||||
const result = filtered();
|
||||
expect(result.nodes.length).toBe(3); // nodes 1, 2, 5 have tags
|
||||
expect(result.nodes.every(n => n.tags.length > 0)).toBe(true);
|
||||
const tagNodes = result.nodes.filter(n => n.id.startsWith('tag:'));
|
||||
expect(result.nodes.length).toBe(7); // original 5 nodes + 2 tag nodes
|
||||
expect(tagNodes.length).toBe(2);
|
||||
expect(tagNodes.map(n => n.title)).toContain('#markdown');
|
||||
expect(tagNodes.map(n => n.title)).toContain('#test');
|
||||
});
|
||||
|
||||
it('should filter by attachments', () => {
|
||||
it('should add attachment nodes when contents are provided', () => {
|
||||
const rawData = signal(createTestData());
|
||||
const config = signal({ ...DEFAULT_GRAPH_CONFIG, showAttachments: true });
|
||||
const filtered = createFilteredGraphData(rawData, config);
|
||||
const noteContents = signal(new Map<string, string>([
|
||||
['1', ''],
|
||||
['2', ''],
|
||||
['3', 'Check out ![[diagram.png]] in this note.'],
|
||||
['4', ''],
|
||||
['5', '']
|
||||
]));
|
||||
const filtered = createFilteredGraphData(rawData, config, noteContents);
|
||||
|
||||
const result = filtered();
|
||||
expect(result.nodes.length).toBe(1);
|
||||
expect(result.nodes[0].id).toBe('3');
|
||||
const attachmentNodes = result.nodes.filter(n => n.id.startsWith('att:'));
|
||||
expect(attachmentNodes.length).toBe(1);
|
||||
expect(attachmentNodes[0].id).toBe('att:diagram.png');
|
||||
expect(result.links.some(link =>
|
||||
(link.source === '3' && link.target === 'att:diagram.png') ||
|
||||
(link.target === '3' && link.source === 'att:diagram.png')
|
||||
)).toBe(true);
|
||||
});
|
||||
|
||||
it('should filter by existing files only', () => {
|
||||
|
||||
Reference in New Issue
Block a user