From ec2bffae1c5cf9ab9e3fcc12a8ed1a5143e99707 Mon Sep 17 00:00:00 2001 From: Richard Gill Date: Sat, 23 Mar 2024 15:25:01 +0000 Subject: [PATCH] test: transformer empty line fixtures (#636) --- .../test/fixtures/focus/empty-line-comment.js | 9 +++++++++ .../fixtures/focus/empty-line-comment.js.output.html | 7 +++++++ .../test/fixtures/highlight/empty-line-comment.js | 9 +++++++++ .../fixtures/highlight/empty-line-comment.js.output.html | 7 +++++++ 4 files changed, 32 insertions(+) create mode 100644 packages/transformers/test/fixtures/focus/empty-line-comment.js create mode 100644 packages/transformers/test/fixtures/focus/empty-line-comment.js.output.html create mode 100644 packages/transformers/test/fixtures/highlight/empty-line-comment.js create mode 100644 packages/transformers/test/fixtures/highlight/empty-line-comment.js.output.html diff --git a/packages/transformers/test/fixtures/focus/empty-line-comment.js b/packages/transformers/test/fixtures/focus/empty-line-comment.js new file mode 100644 index 000000000..c9547605e --- /dev/null +++ b/packages/transformers/test/fixtures/focus/empty-line-comment.js @@ -0,0 +1,9 @@ +export function transformerNotationFocus( + // [!code focus:5] + options = {}, +) { + const { + classFocused = 'focused', + classActivePre = 'has-focused', + } = options +} diff --git a/packages/transformers/test/fixtures/focus/empty-line-comment.js.output.html b/packages/transformers/test/fixtures/focus/empty-line-comment.js.output.html new file mode 100644 index 000000000..d9d8a95d0 --- /dev/null +++ b/packages/transformers/test/fixtures/focus/empty-line-comment.js.output.html @@ -0,0 +1,7 @@ +
export function transformerNotationFocus(  options = {},) {  const {    classFocused = 'focused',    classActivePre = 'has-focused',  } = options}
+ \ No newline at end of file diff --git a/packages/transformers/test/fixtures/highlight/empty-line-comment.js b/packages/transformers/test/fixtures/highlight/empty-line-comment.js new file mode 100644 index 000000000..6ca3a5240 --- /dev/null +++ b/packages/transformers/test/fixtures/highlight/empty-line-comment.js @@ -0,0 +1,9 @@ +export function transformerNotationFocus( + // [!code highlight:5] + options = {}, +) { + const { + classFocused = 'focused', + classActivePre = 'has-focused', + } = options +} diff --git a/packages/transformers/test/fixtures/highlight/empty-line-comment.js.output.html b/packages/transformers/test/fixtures/highlight/empty-line-comment.js.output.html new file mode 100644 index 000000000..00fc6f8be --- /dev/null +++ b/packages/transformers/test/fixtures/highlight/empty-line-comment.js.output.html @@ -0,0 +1,7 @@ +
export function transformerNotationFocus(  options = {},) {  const {    classFocused = 'focused',    classActivePre = 'has-focused',  } = options}
+ \ No newline at end of file