We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd27522 commit b0e746eCopy full SHA for b0e746e
scripts/prebuild/mdx-transforms/exclude-content/index.test.mjs
@@ -129,14 +129,14 @@ Final content.`)
129
})
130
131
it('should handle situations when the folder name includes extra text', async () => {
132
- vaultOptions.version = 'v1.21.x (rc)'
+ const modifiedOptions = { ...vaultOptions, version: 'v1.21.x (rc)' }
133
const markdown = `
134
<!-- BEGIN: Vault:=v1.21.x -->
135
This content should stay.
136
<!-- END: Vault:=v1.21.x -->
137
Other content.
138
`
139
- const result = await runTransform(markdown, vaultOptions)
+ const result = await runTransform(markdown, modifiedOptions)
140
expect(result.trim()).toBe(`<!-- BEGIN: Vault:=v1.21.x -->
141
142
0 commit comments