Skip to content

Commit

Permalink
test: update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Apr 8, 2024
1 parent dc6e368 commit a70555a
Show file tree
Hide file tree
Showing 11 changed files with 2,429 additions and 2,615 deletions.
248 changes: 124 additions & 124 deletions test/__snapshots__/attributes-option.test.js.snap

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions test/__snapshots__/base-option.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`"base" option should work: DOM 1`] = `
"<!DOCTYPE html><html><head>
<title>style-loader test</title>
<style id=\\"existing-style\\">.existing { color: yellow }</style>
<style id="existing-style">.existing { color: yellow }</style>
<style>body {
color: red;
}
Expand All @@ -13,13 +13,13 @@ exports[`"base" option should work: DOM 1`] = `
</style></head>
<body>
<h1>Body</h1>
<div class=\\"target\\"></div>
<iframe class=\\"iframeTarget\\"></iframe>
<div class="target"></div>
<iframe class="iframeTarget"></iframe>
</body></html>"
`;

exports[`"base" option should work: errors 1`] = `Array []`;
exports[`"base" option should work: errors 1`] = `[]`;

exports[`"base" option should work: warnings 1`] = `Array []`;
exports[`"base" option should work: warnings 1`] = `[]`;
3,422 changes: 1,702 additions & 1,720 deletions test/__snapshots__/esModule-option.test.js.snap

Large diffs are not rendered by default.

100 changes: 50 additions & 50 deletions test/__snapshots__/injectType-option.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`"injectType" option should work when the "injectType" option is "autoStyleTag" with non DOM environment: errors 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "autoStyleTag" with non DOM environment: errors 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "autoStyleTag" with non DOM environment: warnings 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "autoStyleTag" with non DOM environment: warnings 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "autoStyleTag": DOM 1`] = `
"<!DOCTYPE html><html><head>
<title>style-loader test</title>
<style id=\\"existing-style\\">.existing { color: yellow }</style>
<style id="existing-style">.existing { color: yellow }</style>
<style>body {
color: red;
}
Expand All @@ -17,25 +17,25 @@ exports[`"injectType" option should work when the "injectType" option is "autoSt
</style></head>
<body>
<h1>Body</h1>
<div class=\\"target\\"></div>
<iframe class=\\"iframeTarget\\"></iframe>
<div class="target"></div>
<iframe class="iframeTarget"></iframe>
</body></html>"
`;

exports[`"injectType" option should work when the "injectType" option is "autoStyleTag": errors 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "autoStyleTag": errors 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "autoStyleTag": warnings 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "autoStyleTag": warnings 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag" with non DOM environment: errors 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag" with non DOM environment: errors 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag" with non DOM environment: warnings 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag" with non DOM environment: warnings 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag": DOM 1`] = `
"<!DOCTYPE html><html><head>
<title>style-loader test</title>
<style id=\\"existing-style\\">.existing { color: yellow }</style>
<style id="existing-style">.existing { color: yellow }</style>
<style>body {
color: red;
}
Expand All @@ -45,25 +45,25 @@ exports[`"injectType" option should work when the "injectType" option is "lazyAu
</style></head>
<body>
<h1>Body</h1>
<div class=\\"target\\"></div>
<iframe class=\\"iframeTarget\\"></iframe>
<div class="target"></div>
<iframe class="iframeTarget"></iframe>
</body></html>"
`;

exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag": errors 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag": errors 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag": warnings 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "lazyAutoStyleTag": warnings 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag" with non DOM environment: errors 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag" with non DOM environment: errors 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag" with non DOM environment: warnings 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag" with non DOM environment: warnings 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag": DOM 1`] = `
"<!DOCTYPE html><html><head>
<title>style-loader test</title>
<style id=\\"existing-style\\">.existing { color: yellow }</style>
<style id="existing-style">.existing { color: yellow }</style>
<style>body {
color: red;
}
Expand All @@ -73,25 +73,25 @@ h1 {
</style></head>
<body>
<h1>Body</h1>
<div class=\\"target\\"></div>
<iframe class=\\"iframeTarget\\"></iframe>
<div class="target"></div>
<iframe class="iframeTarget"></iframe>
</body></html>"
`;

exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag": errors 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag": errors 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag": warnings 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "lazySingletonStyleTag": warnings 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag" with non DOM environment: errors 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag" with non DOM environment: errors 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag" with non DOM environment: warnings 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag" with non DOM environment: warnings 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag": DOM 1`] = `
"<!DOCTYPE html><html><head>
<title>style-loader test</title>
<style id=\\"existing-style\\">.existing { color: yellow }</style>
<style id="existing-style">.existing { color: yellow }</style>
<style>body {
color: red;
}
Expand All @@ -101,47 +101,47 @@ exports[`"injectType" option should work when the "injectType" option is "lazySt
</style></head>
<body>
<h1>Body</h1>
<div class=\\"target\\"></div>
<iframe class=\\"iframeTarget\\"></iframe>
<div class="target"></div>
<iframe class="iframeTarget"></iframe>
</body></html>"
`;

exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag": errors 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag": errors 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag": warnings 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "lazyStyleTag": warnings 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "linkTag" with non DOM environment: errors 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "linkTag" with non DOM environment: errors 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "linkTag" with non DOM environment: warnings 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "linkTag" with non DOM environment: warnings 1`] = `[]`;

exports[`"injectType" option should work when the "injectType" option is "linkTag": DOM 1`] = `
"<!DOCTYPE html><html><head>
<title>style-loader test</title>
<style id=\\"existing-style\\">.existing { color: yellow }</style>
<link rel=\\"stylesheet\\" href=\\"style.css\\"><link rel=\\"stylesheet\\" href=\\"style-other.css\\"></head>
<style id="existing-style">.existing { color: yellow }</style>
<link rel="stylesheet" href="style.css"><link rel="stylesheet" href="style-other.css"></head>
<body>
<h1>Body</h1>
<div class=\\"target\\"></div>
<iframe class=\\"iframeTarget\\"></iframe>
<div class="target"></div>
<iframe class="iframeTarget"></iframe>
</body></html>"
`;
exports[`"injectType" option should work when the "injectType" option is "linkTag": errors 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "linkTag": errors 1`] = `[]`;
exports[`"injectType" option should work when the "injectType" option is "linkTag": warnings 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "linkTag": warnings 1`] = `[]`;
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag" with non DOM environment: errors 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag" with non DOM environment: errors 1`] = `[]`;
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag" with non DOM environment: warnings 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag" with non DOM environment: warnings 1`] = `[]`;
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag": DOM 1`] = `
"<!DOCTYPE html><html><head>
<title>style-loader test</title>
<style id=\\"existing-style\\">.existing { color: yellow }</style>
<style id="existing-style">.existing { color: yellow }</style>
<style>body {
color: red;
}
Expand All @@ -151,25 +151,25 @@ h1 {
</style></head>
<body>
<h1>Body</h1>
<div class=\\"target\\"></div>
<iframe class=\\"iframeTarget\\"></iframe>
<div class="target"></div>
<iframe class="iframeTarget"></iframe>
</body></html>"
`;
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag": errors 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag": errors 1`] = `[]`;
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag": warnings 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "singletonStyleTag": warnings 1`] = `[]`;
exports[`"injectType" option should work when the "injectType" option is "styleTag" with non DOM environment: errors 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "styleTag" with non DOM environment: errors 1`] = `[]`;
exports[`"injectType" option should work when the "injectType" option is "styleTag" with non DOM environment: warnings 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "styleTag" with non DOM environment: warnings 1`] = `[]`;
exports[`"injectType" option should work when the "injectType" option is "styleTag": DOM 1`] = `
"<!DOCTYPE html><html><head>
<title>style-loader test</title>
<style id=\\"existing-style\\">.existing { color: yellow }</style>
<style id="existing-style">.existing { color: yellow }</style>
<style>body {
color: red;
}
Expand All @@ -179,13 +179,13 @@ exports[`"injectType" option should work when the "injectType" option is "styleT
</style></head>
<body>
<h1>Body</h1>
<div class=\\"target\\"></div>
<iframe class=\\"iframeTarget\\"></iframe>
<div class="target"></div>
<iframe class="iframeTarget"></iframe>
</body></html>"
`;
exports[`"injectType" option should work when the "injectType" option is "styleTag": errors 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "styleTag": errors 1`] = `[]`;
exports[`"injectType" option should work when the "injectType" option is "styleTag": warnings 1`] = `Array []`;
exports[`"injectType" option should work when the "injectType" option is "styleTag": warnings 1`] = `[]`;
Loading

0 comments on commit a70555a

Please sign in to comment.