Skip to content

Commit

Permalink
test(dev): fix PostCSS tests in Node 14 (#5988)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish authored Apr 3, 2023
1 parent dbb690a commit 4f70391
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions integration/postcss-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ test.describe("PostCSS enabled", () => {
postcssPlugin: 'replace',
Declaration (decl) {
decl.value = decl.value
.replaceAll(
"TEST_PADDING_VALUE",
.replace(
/TEST_PADDING_VALUE/g,
${JSON.stringify(TEST_PADDING_VALUE)},
)
.replaceAll(
"TEST_POSTCSS_CONTEXT",
.replace(
/TEST_POSTCSS_CONTEXT/g,
Buffer.from(JSON.stringify(ctx)).toString("base64"),
);
},
Expand Down Expand Up @@ -372,8 +372,8 @@ test.describe("PostCSS enabled via unstable future flag", () => {
postcssPlugin: 'replace',
Declaration (decl) {
decl.value = decl.value
.replaceAll(
"TEST_PADDING_VALUE",
.replace(
/TEST_PADDING_VALUE/g,
${JSON.stringify(TEST_PADDING_VALUE)},
);
},
Expand Down Expand Up @@ -458,8 +458,8 @@ test.describe("PostCSS disabled", () => {
postcssPlugin: 'replace',
Declaration (decl) {
decl.value = decl.value
.replaceAll(
"TEST_PADDING_VALUE",
.replace(
/TEST_PADDING_VALUE/g,
${JSON.stringify(TEST_PADDING_VALUE)},
);
},
Expand Down

0 comments on commit 4f70391

Please sign in to comment.