From 5ca8264d731f2cfabb60e8fbe815b47d6360e437 Mon Sep 17 00:00:00 2001 From: Tanner Date: Sat, 13 Apr 2024 01:41:24 -0700 Subject: [PATCH] Allow copy to clipboard in interactive examples --- kumascript/macros/EmbedInteractiveExample.ejs | 2 +- .../tests/macros/EmbedInteractiveExample.test.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/kumascript/macros/EmbedInteractiveExample.ejs b/kumascript/macros/EmbedInteractiveExample.ejs index 19dc9d8d6323..d8a28c27037f 100644 --- a/kumascript/macros/EmbedInteractiveExample.ejs +++ b/kumascript/macros/EmbedInteractiveExample.ejs @@ -58,4 +58,4 @@ const text = mdn.localStringMap({ %>

<%=text["title"]%>

- + diff --git a/kumascript/tests/macros/EmbedInteractiveExample.test.ts b/kumascript/tests/macros/EmbedInteractiveExample.test.ts index 4c67a6cab68d..fe42c25254f5 100644 --- a/kumascript/tests/macros/EmbedInteractiveExample.test.ts +++ b/kumascript/tests/macros/EmbedInteractiveExample.test.ts @@ -8,7 +8,7 @@ describeMacro("EmbedInteractiveExample", function () { return assert.eventually.equal( macro.call("pages/css/animation.html"), `

Try it

-` +` ); }); itMacro("Changes in settings and argument are reflected", function (macro) { @@ -18,7 +18,7 @@ describeMacro("EmbedInteractiveExample", function () { return assert.eventually.equal( macro.call("pages/http/headers.html"), `

Try it

-` +` ); }); itMacro( @@ -30,7 +30,7 @@ describeMacro("EmbedInteractiveExample", function () { return assert.eventually.equal( macro.call("/pages/css/animation.html"), `

Try it

-` +` ); } ); @@ -41,7 +41,7 @@ describeMacro("EmbedInteractiveExample", function () { return assert.eventually.equal( macro.call("pages/js/expressions-conditionaloperators.html"), `

Try it

-` +` ); }); itMacro("An extra class can be passed as an argument", function (macro) { @@ -51,7 +51,7 @@ describeMacro("EmbedInteractiveExample", function () { return assert.eventually.equal( macro.call("pages/http/headers.html", "taller"), `

Try it

-` +` ); }); });