Skip to content

Commit b0e746e

Browse files
making healthier test
1 parent bd27522 commit b0e746e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/prebuild/mdx-transforms/exclude-content/index.test.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ Final content.`)
129129
})
130130

131131
it('should handle situations when the folder name includes extra text', async () => {
132-
vaultOptions.version = 'v1.21.x (rc)'
132+
const modifiedOptions = { ...vaultOptions, version: 'v1.21.x (rc)' }
133133
const markdown = `
134134
<!-- BEGIN: Vault:=v1.21.x -->
135135
This content should stay.
136136
<!-- END: Vault:=v1.21.x -->
137137
Other content.
138138
`
139-
const result = await runTransform(markdown, vaultOptions)
139+
const result = await runTransform(markdown, modifiedOptions)
140140
expect(result.trim()).toBe(`<!-- BEGIN: Vault:=v1.21.x -->
141141
142142
This content should stay.

0 commit comments

Comments
 (0)