Skip to content

Commit

Permalink
⚡ no whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
andriytyurnikov committed Nov 25, 2023
1 parent 7d832ba commit a2ee976
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ function generateFractioSpacing(options = {}) {
let currentStep = s+1;

let key = (currentBase * (currentRem - 1) + currentStep) + "/" + currentBase + "r";
let value = (currentBase * (currentRem - 1) + currentStep) / currentBase + " rem";
let value = (currentBase * (currentRem - 1) + currentStep) / currentBase + "rem";
result[key] = value;
}
}

for(let c = 0; c < remsCore.length; c++) {
let currentRem = remsCore[c];
let key = currentBase * currentRem + "/" + currentBase + "r";
let value = currentRem + " rem";
let value = currentRem + "rem";
result[key] = value;
}

Expand Down
8 changes: 4 additions & 4 deletions index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function generatePluginCss(overrides) {
};

return postcss(tailwindcss(merge(config, overrides)))
.process('@tailwind utilities; .my-util { @apply m-3/6r h-1/1r w-3/4r; }', {
.process('@tailwind utilities; .my-util { @apply m-3/6r h-12/4r w-3/4r; }', {
from: `${path.resolve(__filename)}`,
})
.then(({ css }) => css);
Expand All @@ -32,9 +32,9 @@ test('utility classes can be generated', () => {
return generatePluginCss().then(css => {
expect(css).toMatchCss(`
.my-util {
margin: 0.5 rem;
height: 1 rem;
width: 0.75 rem;
margin: 0.5rem;
height: 3rem;
width: 0.75rem;
}
`);
});
Expand Down

0 comments on commit a2ee976

Please sign in to comment.