fix(learn): preserve whitespace in the tool panel (#39973)
This commit is contained in:
committed by
GitHub
parent
3106fe804f
commit
a71150074d
@ -5,6 +5,10 @@
|
|||||||
margin: 15px 0;
|
margin: 15px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.challenge-test-suite code {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
|
|
||||||
.test-result {
|
.test-result {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -30,7 +30,7 @@ tests:
|
|||||||
testString: assert(!code.match(/\.?[\s\S]*?replace/g));
|
testString: assert(!code.match(/\.?[\s\S]*?replace/g));
|
||||||
- text: <code>urlSlug("Winter Is Coming")</code> should return <code>"winter-is-coming"</code>.
|
- text: <code>urlSlug("Winter Is Coming")</code> should return <code>"winter-is-coming"</code>.
|
||||||
testString: assert(urlSlug("Winter Is Coming") === "winter-is-coming");
|
testString: assert(urlSlug("Winter Is Coming") === "winter-is-coming");
|
||||||
- text: <code>urlSlug(" Winter Is Coming")</code> should return <code>"winter-is-coming"</code>.
|
- text: <code>urlSlug(" Winter Is Coming")</code> should return <code>"winter-is-coming"</code>.
|
||||||
testString: assert(urlSlug(" Winter Is Coming") === "winter-is-coming");
|
testString: assert(urlSlug(" Winter Is Coming") === "winter-is-coming");
|
||||||
- text: <code>urlSlug("A Mind Needs Books Like A Sword Needs A Whetstone")</code> should return <code>"a-mind-needs-books-like-a-sword-needs-a-whetstone"</code>.
|
- text: <code>urlSlug("A Mind Needs Books Like A Sword Needs A Whetstone")</code> should return <code>"a-mind-needs-books-like-a-sword-needs-a-whetstone"</code>.
|
||||||
testString: assert(urlSlug("A Mind Needs Books Like A Sword Needs A Whetstone") === "a-mind-needs-books-like-a-sword-needs-a-whetstone");
|
testString: assert(urlSlug("A Mind Needs Books Like A Sword Needs A Whetstone") === "a-mind-needs-books-like-a-sword-needs-a-whetstone");
|
||||||
|
Reference in New Issue
Block a user