This commit is contained in:
hatuhn
2019-09-13 09:45:04 +07:00
parent f14a34ba19
commit 558fb07261
16790 changed files with 0 additions and 1642370 deletions

View File

@@ -1,27 +0,0 @@
var pkg = require('../../package.json')
module.exports = [
{
'should': 'Should support hooks (pre)',
'expected': '.float-left { float: left; }',
'input': '.float-right { float: right; }',
'reversable': true,
'hooks': {
pre: function (css, postcss) {
css.insertBefore(css.nodes[0], postcss.comment({text: 'rtl:begin:rename'}))
css.insertAfter(css.nodes[css.nodes.length - 1], postcss.comment({text: 'rtl:end:rename'}))
}
}
},
{
'should': 'Should support hooks (post)',
'expected': `/* Generated by RTLCSS v${pkg.version} */\n.float-right { float: left; }`,
'input': '.float-right { float: right; }',
'reversable': false,
'hooks': {
post: function (css, postcss) {
css.insertBefore(css.nodes[0], postcss.comment({text: `Generated by RTLCSS v${pkg.version}`}))
}
}
}
]