Skip to content

Commit

Permalink
🚧 Comment out test script temporaily
Browse files Browse the repository at this point in the history
  • Loading branch information
kghugo committed Aug 4, 2020
1 parent 8fd1ce3 commit 3296cfb
Showing 1 changed file with 50 additions and 50 deletions.
100 changes: 50 additions & 50 deletions test/inclusionLogic.spec.js
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()
// })
// })
// })

0 comments on commit 3296cfb

Please sign in to comment.