fix: typos (#1526)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
export default function StringEventIsland() {
|
||||
return (
|
||||
<button // @ts-ignore - we don't officialy recommend this, but lots of
|
||||
<button // @ts-ignore - we don't officially recommend this, but lots of
|
||||
// apps pre Fresh 1.2 use string based click handlers.
|
||||
onClick="document.querySelector('p').textContent = 'it works'">
|
||||
click me
|
||||
|
||||
@@ -2,7 +2,7 @@ export default function Page() {
|
||||
return (
|
||||
<div>
|
||||
<p>it doesn't work</p>
|
||||
<button // @ts-ignore - we don't officialy recommend this, but lots of
|
||||
<button // @ts-ignore - we don't officially recommend this, but lots of
|
||||
// apps pre Fresh 1.2 use string based click handlers.
|
||||
onClick="document.querySelector('p').textContent = 'it works'">
|
||||
click me
|
||||
|
||||
@@ -50,7 +50,7 @@ export default function InsertCssrules() {
|
||||
{/* Status of insert css rules */}
|
||||
{(() => {
|
||||
if (insertedStyles.value === "") {
|
||||
return <p id="waitClickButton">Plese click button</p>;
|
||||
return <p id="waitClickButton">Please click button</p>;
|
||||
} else if (numDefCssRules.value === numCssRules.value) {
|
||||
return (
|
||||
<p id="errorInsertCssrules">
|
||||
|
||||
+2
-2
@@ -359,7 +359,7 @@ Deno.test("static file - by 'hashed' path", async () => {
|
||||
assert(imgFilePath);
|
||||
assert(imgFilePath.includes(`?__frsh_c=${BUILD_ID}`));
|
||||
|
||||
// check the static file is served corectly under its cacheable route
|
||||
// check the static file is served correctly under its cacheable route
|
||||
const resp2 = await handler(
|
||||
new Request(`https://fresh.deno.dev${imgFilePath}`),
|
||||
);
|
||||
@@ -564,7 +564,7 @@ Deno.test({
|
||||
assertEquals(resp.headers.get("layer3"), "fresh test server layer3");
|
||||
// the below ensure that the middlewware are applied in the correct order.
|
||||
// i.e response header set from layer3 middleware is overwritten
|
||||
// by the reponse header in layer 0
|
||||
// by the response header in layer 0
|
||||
assertEquals(resp.headers.get("server"), "fresh test server");
|
||||
},
|
||||
});
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ Deno.test({
|
||||
|
||||
/**
|
||||
* Compare the class of element of any id with the selectorText of cssrules in stylesheet.
|
||||
* Ensure that twind compliles the class of element.
|
||||
* Ensure that twind compiles the class of element.
|
||||
*/
|
||||
async function compiledCssRulesTest(id: string, styleId: string) {
|
||||
const elemClassList = await page.evaluate((selector) => {
|
||||
|
||||
Reference in New Issue
Block a user