Remove hashes in escaping test to make test more resilient.

This commit is contained in:
Dillon Kearns 2022-11-03 10:13:38 +05:30
parent 6bf1881de4
commit b34801a39f
2 changed files with 6 additions and 6 deletions

View File

@ -3,8 +3,8 @@
<head>
<meta charset="UTF-8" />
<title></title>
<link rel="modulepreload" crossorigin href="/elm.d4001976.js"><link rel="modulepreload" crossorigin href="/assets/index.ad44a3ce.js"><link rel="preload" href="/assets/index.dcd1e8f7.css" as="style">
<script defer src="/elm.js" type="text/javascript"></script>
<link rel="modulepreload" crossorigin href="/elm.HASH.js"><link rel="modulepreload" crossorigin href="/assets/index.HASH.js"><link rel="preload" href="/assets/index.HASH.css" as="style">
<script defer src="/elm.HASH.js" type="text/javascript"></script>
@ -12,8 +12,8 @@
<link rel="canonical" href="https://elm-pages.com/escaping" /> <meta name="description" content="These quotes should be escaped &quot;ESCAPE THIS&quot;, and so should &lt;CARETS&gt;" /> <meta property="og:image" content="TODO" /> <meta property="og:image:secure_url" content="TODO" /> <meta property="og:image:alt" content="elm-pages logo" /> <meta property="og:title" content="TODO title" /> <meta property="og:url" content="https://elm-pages.com/escaping" /> <meta property="og:description" content="These quotes should be escaped &quot;ESCAPE THIS&quot;, and so should &lt;CARETS&gt;" /> <meta property="og:site_name" content="elm-pages" /> <meta property="twitter:card" content="summary" /> <meta property="twitter:title" content="TODO title" /> <meta property="twitter:description" content="These quotes should be escaped &quot;ESCAPE THIS&quot;, and so should &lt;CARETS&gt;" /> <meta property="twitter:image" content="TODO" /> <meta property="twitter:image:alt" content="elm-pages logo" /> <meta property="og:type" content="website" /> <meta name="viewport" content="width=device-width,initial-scale=1" /> <meta name="mobile-web-app-capable" content="yes" /> <meta name="theme-color" content="#ffffff" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> <link rel="icon" sizes="32x32" type="image/png" href="https://res.cloudinary.com/dillonkearns/image/upload/c_pad,w_32,h_32,q_auto,f_png/v1603234028/elm-pages/elm-pages-icon" /> <link rel="icon" sizes="16x16" type="image/png" href="https://res.cloudinary.com/dillonkearns/image/upload/c_pad,w_16,h_16,q_auto,f_png/v1603234028/elm-pages/elm-pages-icon" /> <link rel="apple-touch-icon" sizes="180x180" href="https://res.cloudinary.com/dillonkearns/image/upload/c_pad,w_180,h_180,q_auto,f_png/v1603234028/elm-pages/elm-pages-icon" /> <link rel="apple-touch-icon" sizes="192x192" href="https://res.cloudinary.com/dillonkearns/image/upload/c_pad,w_192,h_192,q_auto,f_png/v1603234028/elm-pages/elm-pages-icon" /> <link rel="sitemap" type="application/xml" href="/sitemap.xml" />
<script id="__ELM_PAGES_BYTES_DATA__" type="application/octet-stream">AQKEPHNjcmlwdD48L3NjcmlwdD4gaXMgdW5zYWZlIGluIEpTT04gdW5sZXNzIGl0IGlzIGVzY2FwZWQgcHJvcGVybHkuAA==</script>
<script type="module" crossorigin src="/assets/index.ad44a3ce.js"></script>
<link rel="stylesheet" href="/assets/index.dcd1e8f7.css">
<script type="module" crossorigin src="/assets/index.HASH.js"></script>
<link rel="stylesheet" href="/assets/index.HASH.css">
</head>
<body>
<div data-url="" display="none"></div>

View File

@ -5,7 +5,7 @@
"scripts": {
"start": "elm-pages dev",
"test": "elm-pages build --debug && npm run clean-diff && elm-pages build && npm run clean-diff",
"clean-diff": "sed -i.bak 's/src=\".elm.*\\.js\"/src=\"\\/elm.js\"/gi' ./dist/escaping/index.html && sed -i.bak 's/<meta name=\"generator\".*$//gi' ./dist/escaping/index.html && git diff --exit-code ./dist",
"clean-diff": "sed -E -i.bak 's/\\.[a-f0-9]{8}\\.([a-z]{2,4})/.HASH.\\1/gi' ./dist/escaping/index.html && sed -i.bak 's/<meta name=\"generator\".*$//gi' ./dist/escaping/index.html && git diff --exit-code ./dist",
"build": "elm-pages build"
},
"author": "Dillon Kearns",
@ -14,4 +14,4 @@
"elm-pages": "file:../..",
"elm-tooling": "^1.3.0"
}
}
}