-
-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
caf66a0
commit cdf0ba7
Showing
13 changed files
with
324 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`lazyStyleTag options should pass "options" to "insert" function and unuse: DOM 1`] = ` | ||
"<!DOCTYPE html><html><head> | ||
<title>style-loader test</title> | ||
<style id=\\"existing-style\\">.existing { color: yellow }</style> | ||
</head> | ||
<body> | ||
<h1>Body</h1> | ||
<div class=\\"target\\"></div> | ||
<iframe class=\\"iframeTarget\\"></iframe> | ||
</body></html>" | ||
`; | ||
exports[`lazyStyleTag options should pass "options" to "insert" function and unuse: errors 1`] = `Array []`; | ||
exports[`lazyStyleTag options should pass "options" to "insert" function and unuse: warnings 1`] = `Array []`; | ||
exports[`lazyStyleTag options should pass "options" to "insert" function: DOM 1`] = ` | ||
"<!DOCTYPE html><html><head> | ||
<title>style-loader test</title> | ||
<style id=\\"existing-style\\">.existing { color: yellow }</style> | ||
</head> | ||
<body> | ||
<h1>Body</h1> | ||
<div class=\\"target\\"></div> | ||
<iframe class=\\"iframeTarget\\"></iframe> | ||
<style>body { | ||
color: red; | ||
} | ||
</style></body></html>" | ||
`; | ||
exports[`lazyStyleTag options should pass "options" to "insert" function: errors 1`] = `Array []`; | ||
exports[`lazyStyleTag options should pass "options" to "insert" function: warnings 1`] = `Array []`; | ||
exports[`lazyStyleTag options should pass "options" to "styleTagTransform" function: DOM 1`] = ` | ||
"<!DOCTYPE html><html><head> | ||
<title>style-loader test</title> | ||
<style id=\\"existing-style\\">.existing { color: yellow }</style> | ||
<style>body { | ||
color: red; | ||
} | ||
.some-element {color: red;} | ||
</style></head> | ||
<body> | ||
<h1>Body</h1> | ||
<div class=\\"target\\"></div> | ||
<iframe class=\\"iframeTarget\\"></iframe> | ||
</body></html>" | ||
`; | ||
exports[`lazyStyleTag options should pass "options" to "styleTagTransform" function: errors 1`] = `Array []`; | ||
exports[`lazyStyleTag options should pass "options" to "styleTagTransform" function: warnings 1`] = `Array []`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import style from './style.css'; | ||
|
||
style.use({ | ||
insertInto: document.body, | ||
additionalStyles: '.some-element {color: red;}' | ||
}); | ||
|
||
style.unuse(); |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.