|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
| 3 | +exports[`"insert" option should insert function added to buildDependencies when the "injectType" option is "lazySingletonStyleTag" and insert is object: DOM 1`] = ` |
| 4 | +"<!DOCTYPE html><html><head><style>body { |
| 5 | + color: red; |
| 6 | +} |
| 7 | +h1 { |
| 8 | + color: blue; |
| 9 | +} |
| 10 | +</style> |
| 11 | + <title>style-loader test</title> |
| 12 | + <style id=\\"existing-style\\">.existing { color: yellow }</style> |
| 13 | +</head> |
| 14 | +<body> |
| 15 | + <h1>Body</h1> |
| 16 | + <div class=\\"target\\"></div> |
| 17 | + <iframe class=\\"iframeTarget\\"></iframe> |
| 18 | +
|
| 19 | +
|
| 20 | +</body></html>" |
| 21 | +`; |
| 22 | +
|
| 23 | +exports[`"insert" option should insert function added to buildDependencies when the "injectType" option is "lazySingletonStyleTag" and insert is object: errors 1`] = `Array []`; |
| 24 | +
|
| 25 | +exports[`"insert" option should insert function added to buildDependencies when the "injectType" option is "lazySingletonStyleTag" and insert is object: warnings 1`] = `Array []`; |
| 26 | +
|
| 27 | +exports[`"insert" option should insert function added to buildDependencies when the "injectType" option is "lazyStyleTag" and insert is object: DOM 1`] = ` |
| 28 | +"<!DOCTYPE html><html><head><style>body { |
| 29 | + color: red; |
| 30 | +} |
| 31 | +</style><style>h1 { |
| 32 | + color: blue; |
| 33 | +} |
| 34 | +</style> |
| 35 | + <title>style-loader test</title> |
| 36 | + <style id=\\"existing-style\\">.existing { color: yellow }</style> |
| 37 | +</head> |
| 38 | +<body> |
| 39 | + <h1>Body</h1> |
| 40 | + <div class=\\"target\\"></div> |
| 41 | + <iframe class=\\"iframeTarget\\"></iframe> |
| 42 | +
|
| 43 | +
|
| 44 | +</body></html>" |
| 45 | +`; |
| 46 | +
|
| 47 | +exports[`"insert" option should insert function added to buildDependencies when the "injectType" option is "lazyStyleTag" and insert is object: errors 1`] = `Array []`; |
| 48 | +
|
| 49 | +exports[`"insert" option should insert function added to buildDependencies when the "injectType" option is "lazyStyleTag" and insert is object: warnings 1`] = `Array []`; |
| 50 | +
|
| 51 | +exports[`"insert" option should insert function added to buildDependencies when the "injectType" option is "linkTag" and insert is object: DOM 1`] = ` |
| 52 | +"<!DOCTYPE html><html><head><link rel=\\"stylesheet\\" href=\\"style.css\\"><link rel=\\"stylesheet\\" href=\\"style-other.css\\"> |
| 53 | + <title>style-loader test</title> |
| 54 | + <style id=\\"existing-style\\">.existing { color: yellow }</style> |
| 55 | +</head> |
| 56 | +<body> |
| 57 | + <h1>Body</h1> |
| 58 | + <div class=\\"target\\"></div> |
| 59 | + <iframe class=\\"iframeTarget\\"></iframe> |
| 60 | +
|
| 61 | +
|
| 62 | +</body></html>" |
| 63 | +`; |
| 64 | +
|
| 65 | +exports[`"insert" option should insert function added to buildDependencies when the "injectType" option is "linkTag" and insert is object: errors 1`] = `Array []`; |
| 66 | +
|
| 67 | +exports[`"insert" option should insert function added to buildDependencies when the "injectType" option is "linkTag" and insert is object: warnings 1`] = `Array []`; |
| 68 | +
|
| 69 | +exports[`"insert" option should insert function added to buildDependencies when the "injectType" option is "singletonStyleTag" and insert is object: DOM 1`] = ` |
| 70 | +"<!DOCTYPE html><html><head><style>body { |
| 71 | + color: red; |
| 72 | +} |
| 73 | +h1 { |
| 74 | + color: blue; |
| 75 | +} |
| 76 | +</style> |
| 77 | + <title>style-loader test</title> |
| 78 | + <style id=\\"existing-style\\">.existing { color: yellow }</style> |
| 79 | +</head> |
| 80 | +<body> |
| 81 | + <h1>Body</h1> |
| 82 | + <div class=\\"target\\"></div> |
| 83 | + <iframe class=\\"iframeTarget\\"></iframe> |
| 84 | +
|
| 85 | +
|
| 86 | +</body></html>" |
| 87 | +`; |
| 88 | +
|
| 89 | +exports[`"insert" option should insert function added to buildDependencies when the "injectType" option is "singletonStyleTag" and insert is object: errors 1`] = `Array []`; |
| 90 | +
|
| 91 | +exports[`"insert" option should insert function added to buildDependencies when the "injectType" option is "singletonStyleTag" and insert is object: warnings 1`] = `Array []`; |
| 92 | +
|
| 93 | +exports[`"insert" option should insert function added to buildDependencies when the "injectType" option is "styleTag" and insert is object: DOM 1`] = ` |
| 94 | +"<!DOCTYPE html><html><head><style>body { |
| 95 | + color: red; |
| 96 | +} |
| 97 | +</style><style>h1 { |
| 98 | + color: blue; |
| 99 | +} |
| 100 | +</style> |
| 101 | + <title>style-loader test</title> |
| 102 | + <style id=\\"existing-style\\">.existing { color: yellow }</style> |
| 103 | +</head> |
| 104 | +<body> |
| 105 | + <h1>Body</h1> |
| 106 | + <div class=\\"target\\"></div> |
| 107 | + <iframe class=\\"iframeTarget\\"></iframe> |
| 108 | +
|
| 109 | +
|
| 110 | +</body></html>" |
| 111 | +`; |
| 112 | +
|
| 113 | +exports[`"insert" option should insert function added to buildDependencies when the "injectType" option is "styleTag" and insert is object: errors 1`] = `Array []`; |
| 114 | +
|
| 115 | +exports[`"insert" option should insert function added to buildDependencies when the "injectType" option is "styleTag" and insert is object: warnings 1`] = `Array []`; |
| 116 | +
|
3 | 117 | exports[`"insert" option should insert styles into "body" bottom when the "injectType" option is "lazySingletonStyleTag": DOM 1`] = `
|
4 | 118 | "<!DOCTYPE html><html><head>
|
5 | 119 | <title>style-loader test</title>
|
|
0 commit comments