Skip to content

Commit 5664a13

Browse files
refactor: code
1 parent 2a560e3 commit 5664a13

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2+
testTimeout: 20000,
23
collectCoverageFrom: ["src/**/*.js"],
3-
setupFilesAfterEnv: ["<rootDir>/setupTest.js"],
44
};

setupTest.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

test/__snapshots__/preprocessor-option.test.js.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exports[`'preprocess' option should work with async "preprocessor" function opti
77
var ___HTML_LOADER_IMPORT_0___ = new URL("./image.png", import.meta.url);
88
// Module
99
var code = \`<div>
10-
<p>Alexander Krasnoyarov</p>
10+
<p>Firstname Lastname</p>
1111
<img src="\${___HTML_LOADER_IMPORT_0___}" alt="alt" />
1212
<div>
1313
\`;
@@ -17,7 +17,7 @@ export default code;"
1717
1818
exports[`'preprocess' option should work with async "preprocessor" function option: result 1`] = `
1919
"<div>
20-
<p>Alexander Krasnoyarov</p>
20+
<p>Firstname Lastname</p>
2121
<img src="replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png" alt="alt" />
2222
<div>
2323
"
@@ -52,7 +52,7 @@ exports[`'preprocess' option should work with the "preprocessor" option: module
5252
var ___HTML_LOADER_IMPORT_0___ = new URL("./image.png", import.meta.url);
5353
// Module
5454
var code = \`<div>
55-
<p>Alexander Krasnoyarov</p>
55+
<p>Firstname Lastname</p>
5656
<img src="\${___HTML_LOADER_IMPORT_0___}" alt="alt" />
5757
<div>
5858
\`;
@@ -62,7 +62,7 @@ export default code;"
6262
6363
exports[`'preprocess' option should work with the "preprocessor" option: result 1`] = `
6464
"<div>
65-
<p>Alexander Krasnoyarov</p>
65+
<p>Firstname Lastname</p>
6666
<img src="replaced_file_protocol_/webpack/public/path/image-7bc91c245a8a10a4.png" alt="alt" />
6767
<div>
6868
"

test/preprocessor-option.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ describe("'preprocess' option", () => {
2323

2424
try {
2525
result = Handlebars.compile(content)({
26-
firstname: "Alexander",
27-
lastname: "Krasnoyarov",
26+
firstname: "Firstname",
27+
lastname: "Lastname",
2828
});
2929
} catch (error) {
3030
loaderContext.emitError(error);
@@ -57,8 +57,8 @@ describe("'preprocess' option", () => {
5757

5858
try {
5959
result = await Handlebars.compile(content)({
60-
firstname: "Alexander",
61-
lastname: "Krasnoyarov",
60+
firstname: "Firstname",
61+
lastname: "Lastname",
6262
});
6363
} catch (error) {
6464
await loaderContext.emitError(error);

0 commit comments

Comments
 (0)