Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: fix incorrect language identifiers causing duplicated code blocks in test.md #52660

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

mleenhardt
Copy link
Contributor

Two code blocks were incorrectly labeled as js instead of cjs, causing them to always be shown on https://nodejs.org/api/test.html#timers instead of being conditionally shown depending on the value of the CJS / ESM toggle.

The screenshot below shows the duplicated blocks
image

This change should cause a single block with a CJS / ESM toggle to be shown
image

…s in test.md

Two code blocks were incorrectly labeled as "js" instead of "cjs", causing them to always be shown on https://nodejs.org/api/test.html#timers instead of being conditionally shown depending on the value of the "CJS / ESM" toggle.
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. test_runner Issues and PRs related to the test runner subsystem. labels Apr 24, 2024
@MoLow MoLow added the fast-track PRs that do not need to wait for 48 hours to land. label Apr 24, 2024
Copy link
Contributor

Fast-track has been requested by @MoLow. Please 👍 to approve.

@MoLow
Copy link
Member

MoLow commented Apr 24, 2024

@mleenhardt please amend the commit message to adhere the guidelines

@aduh95 aduh95 merged commit 91dc8c9 into nodejs:main Apr 24, 2024
23 of 24 checks passed
@aduh95
Copy link
Contributor

aduh95 commented Apr 24, 2024

Landed in 91dc8c9

@mleenhardt mleenhardt deleted the patch-1 branch April 24, 2024 16:57
aduh95 pushed a commit that referenced this pull request Apr 29, 2024
Two fenced code blocks were incorrectly labeled as `js` instead of
`cjs`, causing both ESM and CJS version to be shown on
https://nodejs.org/api/test.html#timers instead of being conditionally
shown depending on the value of the "CJS / ESM" toggle.

PR-URL: #52660
Reviewed-By: Xuguang Mei <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
marco-ippolito pushed a commit that referenced this pull request May 2, 2024
Two fenced code blocks were incorrectly labeled as `js` instead of
`cjs`, causing both ESM and CJS version to be shown on
https://nodejs.org/api/test.html#timers instead of being conditionally
shown depending on the value of the "CJS / ESM" toggle.

PR-URL: #52660
Reviewed-By: Xuguang Mei <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
marco-ippolito pushed a commit that referenced this pull request May 3, 2024
Two fenced code blocks were incorrectly labeled as `js` instead of
`cjs`, causing both ESM and CJS version to be shown on
https://nodejs.org/api/test.html#timers instead of being conditionally
shown depending on the value of the "CJS / ESM" toggle.

PR-URL: #52660
Reviewed-By: Xuguang Mei <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
bmeck pushed a commit to bmeck/node that referenced this pull request Jun 22, 2024
Two fenced code blocks were incorrectly labeled as `js` instead of
`cjs`, causing both ESM and CJS version to be shown on
https://nodejs.org/api/test.html#timers instead of being conditionally
shown depending on the value of the "CJS / ESM" toggle.

PR-URL: nodejs#52660
Reviewed-By: Xuguang Mei <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. fast-track PRs that do not need to wait for 48 hours to land. test_runner Issues and PRs related to the test runner subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants