Skip to content

Commit

Permalink
style: update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jan 15, 2024
1 parent 38b7826 commit b04f058
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion test/helpers/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default (code) => {
const module = new Module(resource, parentModule);
// eslint-disable-next-line no-underscore-dangle
module.paths = Module._nodeModulePaths(
path.resolve(__dirname, "../fixtures")
path.resolve(__dirname, "../fixtures"),
);
module.filename = resource;

Expand Down
2 changes: 1 addition & 1 deletion test/helpers/normalizeErrors.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ function removeCWD(str) {

export default (errors) =>
errors.map((error) =>
removeCWD(error.toString().split("\n").slice(0, 2).join("\n"))
removeCWD(error.toString().split("\n").slice(0, 2).join("\n")),
);
22 changes: 11 additions & 11 deletions test/loader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe("loader", () => {
const compiler = getCompiler("simple.js");
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./foo.coffee", stats)
getModuleSource("./foo.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand All @@ -27,7 +27,7 @@ describe("loader", () => {
const compiler = getCompiler("bare.js");
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./bare.coffee", stats)
getModuleSource("./bare.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand Down Expand Up @@ -55,7 +55,7 @@ describe("loader", () => {
});
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./foo.coffee", stats)
getModuleSource("./foo.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand All @@ -81,7 +81,7 @@ describe("loader", () => {
const compiler = getCompiler("simple.js", { sourceMap: true });
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./foo.coffee", stats)
getModuleSource("./foo.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand All @@ -94,7 +94,7 @@ describe("loader", () => {
const compiler = getCompiler("simple.js", { sourceMap: false });
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./foo.coffee", stats)
getModuleSource("./foo.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand All @@ -107,7 +107,7 @@ describe("loader", () => {
const compiler = getCompiler("simple.js", {}, { devtool: "source-map" });
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./foo.coffee", stats)
getModuleSource("./foo.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand All @@ -120,7 +120,7 @@ describe("loader", () => {
const compiler = getCompiler("simple.js", {}, { devtool: false });
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./foo.coffee", stats)
getModuleSource("./foo.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand All @@ -133,11 +133,11 @@ describe("loader", () => {
const compiler = getCompiler(
"simple.js",
{ sourceMap: true },
{ devtool: false }
{ devtool: false },
);
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./foo.coffee", stats)
getModuleSource("./foo.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand All @@ -150,7 +150,7 @@ describe("loader", () => {
const compiler = getCompiler("simple.js", { unknown: true });
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./foo.coffee", stats)
getModuleSource("./foo.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand All @@ -163,7 +163,7 @@ describe("loader", () => {
const compiler = getCompiler("baz.js", { literate: true });
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./baz.litcoffee", stats)
getModuleSource("./baz.litcoffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand Down

0 comments on commit b04f058

Please sign in to comment.