diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:10:59 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:41:44 +0800 |
| commit | fc87c009806dcc98867f6b58efe29b042aa01dee (patch) | |
| tree | 8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/postcss-hexrgba/test/test.js | |
| parent | 3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff) | |
node: updatemain
Diffstat (limited to 'node_modules/postcss-hexrgba/test/test.js')
| -rw-r--r-- | node_modules/postcss-hexrgba/test/test.js | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/node_modules/postcss-hexrgba/test/test.js b/node_modules/postcss-hexrgba/test/test.js deleted file mode 100644 index ad54cd2c..00000000 --- a/node_modules/postcss-hexrgba/test/test.js +++ /dev/null @@ -1,37 +0,0 @@ -'use strict'; - -const postcss = require('postcss'); -const expect = require('chai').expect; -const fs = require('fs'); -const path = require('path'); -const plugin = require('../'); - -function test(fixture, opts, done) { - let input = fixture + '.css', - expected = fixture + '.expected.css'; - - input = fs.readFileSync(path.join(__dirname, 'fixtures', input), 'utf8'); - expected = fs.readFileSync(path.join(__dirname, 'fixtures', expected), 'utf8'); - - postcss([ plugin(opts) ]) - .process(input) - .then(result => { - expect(result.css).to.eql(expected); - expect(result.warnings()).to.be.empty; - done(); - }).catch(error => done(error)); -} - -describe('postcss-hexrgba', () => { - - it('handles standard hex', done => test('standard', {}, done)); - - it('handles shorthand hex', done => test('shorthand', {}, done)); - - it('handles hex in multiple attributes', done => test('multiple', {}, done)); - - it('handles complex statements', done => test('complex', {}, done)); - - it('preservers !important', done => test('important', {}, done)); - -}); |
