fix: typos (#1526)

This commit is contained in:
Lino Le Van
2023-07-26 13:09:42 +00:00
committed by GitHub
parent 1ed93cec88
commit 5ba19abe13
11 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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) => {