Then the code block "example.config.js" should be written in "js"

Assert the language a code block is highlighted as (its class language-<name>).

Examples

Then the code block "example.config.js" should be written in "js"
And the code block "server.ts" should be written in "ts"
Then code block "brew install example" should be written in "bash"
And the code block "winget install" should be written in "powershell"
Then the code block "server.js" should be written in "js"

Pattern

Then(/^(?:the )?code block "([^"]*)?" should be written in "([^"]*)?"$/, …)

Part of @webship-js/docusaurus-steps (github.com/webship/docusaurus-steps), a step pack for Webship-js 2.0.x.