0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/packages/middleware/test/__snapshots__/template.test.ts.snap

132 lines
4.1 KiB
Text
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`template custom body after 1`] = `
"
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<base href="http://domain.com/">
<title></title>
<link rel="icon" href="http://domain.com/-/static/favicon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script>
window.__VERDACCIO_BASENAME_UI_OPTIONS={"base":"http://domain.com/"}
</script>
</head>
<body class="body">
<div id="root"></div>
<script defer="defer" src="http://domain.com/-/static/runtime.6126058572f989c948b1.js"></script>
<script defer="defer" src="http://domain.com/-/static/main.6126058572f989c948b1.js"></script>
<script src="foo"/>
</body>
</html>
"
`;
exports[`template custom body before 1`] = `
"
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<base href="http://domain.com/">
<title></title>
<link rel="icon" href="http://domain.com/-/static/favicon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script>
window.__VERDACCIO_BASENAME_UI_OPTIONS={"base":"http://domain.com/"}
</script>
</head>
<body class="body">
<script src="fooBefore"/><script src="barBefore"/>
<div id="root"></div>
<script defer="defer" src="http://domain.com/-/static/runtime.6126058572f989c948b1.js"></script>
<script defer="defer" src="http://domain.com/-/static/main.6126058572f989c948b1.js"></script>
</body>
</html>
"
`;
exports[`template custom render 1`] = `
"
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<base href="http://domain.com/">
<title></title>
<link rel="icon" href="http://domain.com/-/static/favicon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script>
window.__VERDACCIO_BASENAME_UI_OPTIONS={"base":"http://domain.com/"}
</script>
</head>
<body class="body">
<div id="root"></div>
<script defer="defer" src="http://domain.com/-/static/runtime.6126058572f989c948b1.js"></script>
<script defer="defer" src="http://domain.com/-/static/main.6126058572f989c948b1.js"></script>
</body>
</html>
"
`;
exports[`template custom title 1`] = `
"
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<base href="http://domain.com/">
<title>foo title</title>
<link rel="icon" href="http://domain.com/-/static/favicon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
2021-04-02 08:59:47 -05:00
<script>
window.__VERDACCIO_BASENAME_UI_OPTIONS={"base":"http://domain.com/","title":"foo title"}
2021-04-02 08:59:47 -05:00
</script>
</head>
<body class="body">
<div id="root"></div>
<script defer="defer" src="http://domain.com/-/static/runtime.6126058572f989c948b1.js"></script>
<script defer="defer" src="http://domain.com/-/static/main.6126058572f989c948b1.js"></script>
2021-04-02 08:59:47 -05:00
</body>
</html>
"
`;
exports[`template meta scripts 1`] = `
"
<!DOCTYPE html>
<html lang="en-us">
2021-04-02 08:59:47 -05:00
<head>
<meta charset="utf-8">
<base href="http://domain.com/">
<title></title>
<link rel="icon" href="http://domain.com/-/static/favicon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
2021-04-02 08:59:47 -05:00
<script>
window.__VERDACCIO_BASENAME_UI_OPTIONS={"base":"http://domain.com/"}
2021-04-02 08:59:47 -05:00
</script>
<style>.someclass{font-size:10px;}</style>
</head>
<body class="body">
<div id="root"></div>
<script defer="defer" src="http://domain.com/-/static/runtime.6126058572f989c948b1.js"></script>
<script defer="defer" src="http://domain.com/-/static/main.6126058572f989c948b1.js"></script>
</body>
</html>
"
`;