-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚧 Comment out test script temporaily
- Loading branch information
kghugo
committed
Aug 4, 2020
1 parent
8fd1ce3
commit 3296cfb
Showing
1 changed file
with
50 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
const postcss = require('postcss') | ||
const postcssRfsAutopilot = require('../index.js') | ||
|
||
const chai = require('chai') | ||
const expect = chai.expect | ||
|
||
describe('Test shouldBeTransformed()', function () { | ||
let css | ||
|
||
beforeEach(function () { | ||
css = `p #hello{ | ||
font-size: 18px; | ||
margin: rfs(10rem); | ||
} | ||
body{ | ||
padding: 5px; | ||
}` | ||
}) | ||
|
||
describe('if a value is already wrapped in rfs()', function () { | ||
it('should not be transformed', async function (done) { | ||
const options = { | ||
|
||
} | ||
|
||
const result = await postcss([ | ||
postcssRfsAutopilot(options) | ||
]).process(css, { from: undefined }).then(result => { | ||
console.log(result) | ||
return result.css | ||
}) | ||
|
||
console.log(result) | ||
done() | ||
}) | ||
}) | ||
|
||
describe('if the unit of a value is not included in includedUnits', function () { | ||
it('should not be transformed', function (done) { | ||
done() | ||
}) | ||
}) | ||
|
||
describe('if the unit of a value is included in excludedUnits', function () { | ||
it('should not be transformed', function (done) { | ||
done() | ||
}) | ||
}) | ||
}) | ||
// const postcss = require('postcss') | ||
// const postcssRfsAutopilot = require('../index.js') | ||
// | ||
// const chai = require('chai') | ||
// const expect = chai.expect | ||
// | ||
// describe('Test shouldBeTransformed()', function () { | ||
// let css | ||
// | ||
// beforeEach(function () { | ||
// css = `p #hello{ | ||
// font-size: 18px; | ||
// margin: rfs(10rem); | ||
// } | ||
// | ||
// body{ | ||
// padding: 5px; | ||
// }` | ||
// }) | ||
// | ||
// describe('if a value is already wrapped in rfs()', function () { | ||
// it('should not be transformed', async function (done) { | ||
// const options = { | ||
// | ||
// } | ||
// | ||
// const result = await postcss([ | ||
// postcssRfsAutopilot(options) | ||
// ]).process(css, { from: undefined }).then(result => { | ||
// console.log(result) | ||
// return result.css | ||
// }) | ||
// | ||
// console.log(result) | ||
// done() | ||
// }) | ||
// }) | ||
// | ||
// describe('if the unit of a value is not included in includedUnits', function () { | ||
// it('should not be transformed', function (done) { | ||
// done() | ||
// }) | ||
// }) | ||
// | ||
// describe('if the unit of a value is included in excludedUnits', function () { | ||
// it('should not be transformed', function (done) { | ||
// done() | ||
// }) | ||
// }) | ||
// }) |