Skip to content

Commit 755f69b

Browse files
committed
test: Explain the use of NBSP in 'visualise links' tests
1 parent c8cb892 commit 755f69b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Task/Link.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ describe('linkClass', () => {
221221

222222
describe('visualise links', () => {
223223
function createRow(field: string, value: string | undefined): string {
224+
// We use NBSP - non-breaking spaces - so that the approved file content
225+
// is correctly aligned when viewed in Obsidian:
224226
return addBackticks(field.padEnd(26, ' ')) + ': ' + addBackticks(formatToRepresentType(value)) + '\n';
225227
}
226228

0 commit comments

Comments
 (0)