summaryrefslogtreecommitdiff
path: root/node_modules/postcss-hexrgba/test
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/postcss-hexrgba/test')
-rw-r--r--node_modules/postcss-hexrgba/test/fixtures/complex.css5
-rw-r--r--node_modules/postcss-hexrgba/test/fixtures/complex.expected.css5
-rw-r--r--node_modules/postcss-hexrgba/test/fixtures/important.css4
-rw-r--r--node_modules/postcss-hexrgba/test/fixtures/important.expected.css4
-rw-r--r--node_modules/postcss-hexrgba/test/fixtures/multiple.css4
-rw-r--r--node_modules/postcss-hexrgba/test/fixtures/multiple.expected.css4
-rw-r--r--node_modules/postcss-hexrgba/test/fixtures/shorthand.css4
-rw-r--r--node_modules/postcss-hexrgba/test/fixtures/shorthand.expected.css4
-rw-r--r--node_modules/postcss-hexrgba/test/fixtures/standard.css4
-rw-r--r--node_modules/postcss-hexrgba/test/fixtures/standard.expected.css4
-rw-r--r--node_modules/postcss-hexrgba/test/mocha.opts1
-rw-r--r--node_modules/postcss-hexrgba/test/test.js37
12 files changed, 0 insertions, 80 deletions
diff --git a/node_modules/postcss-hexrgba/test/fixtures/complex.css b/node_modules/postcss-hexrgba/test/fixtures/complex.css
deleted file mode 100644
index b7032ad7..00000000
--- a/node_modules/postcss-hexrgba/test/fixtures/complex.css
+++ /dev/null
@@ -1,5 +0,0 @@
- .foo {
- background: linear-gradient(rgba(#0fab53,.1), rgba(#000, 0.2));
- background-image: linear-gradient(#f00, rgba(#f00, 0.2)),
- linear-gradient(#0f0, rgba(#0f0, 0.2));
- }
diff --git a/node_modules/postcss-hexrgba/test/fixtures/complex.expected.css b/node_modules/postcss-hexrgba/test/fixtures/complex.expected.css
deleted file mode 100644
index d9e8aaeb..00000000
--- a/node_modules/postcss-hexrgba/test/fixtures/complex.expected.css
+++ /dev/null
@@ -1,5 +0,0 @@
- .foo {
- background: linear-gradient(rgba(15,171,83,.1), rgba(0,0,0, 0.2));
- background-image: linear-gradient(#f00, rgba(255,0,0, 0.2)),
- linear-gradient(#0f0, rgba(0,255,0, 0.2));
- }
diff --git a/node_modules/postcss-hexrgba/test/fixtures/important.css b/node_modules/postcss-hexrgba/test/fixtures/important.css
deleted file mode 100644
index 19b79f67..00000000
--- a/node_modules/postcss-hexrgba/test/fixtures/important.css
+++ /dev/null
@@ -1,4 +0,0 @@
-.foo {
- border: 1px solid rgba(#f00, 0.2) !important;
- color: rgba(#f00,.2) !important;
-}
diff --git a/node_modules/postcss-hexrgba/test/fixtures/important.expected.css b/node_modules/postcss-hexrgba/test/fixtures/important.expected.css
deleted file mode 100644
index 956990f7..00000000
--- a/node_modules/postcss-hexrgba/test/fixtures/important.expected.css
+++ /dev/null
@@ -1,4 +0,0 @@
-.foo {
- border: 1px solid rgba(255,0,0, 0.2) !important;
- color: rgba(255,0,0,.2) !important;
-}
diff --git a/node_modules/postcss-hexrgba/test/fixtures/multiple.css b/node_modules/postcss-hexrgba/test/fixtures/multiple.css
deleted file mode 100644
index c382bab6..00000000
--- a/node_modules/postcss-hexrgba/test/fixtures/multiple.css
+++ /dev/null
@@ -1,4 +0,0 @@
-.foo {
- border: 1px solid rgba(#f00, 0.2);
- border: rgba(#f00,.2) 1px solid;
-}
diff --git a/node_modules/postcss-hexrgba/test/fixtures/multiple.expected.css b/node_modules/postcss-hexrgba/test/fixtures/multiple.expected.css
deleted file mode 100644
index 2510009a..00000000
--- a/node_modules/postcss-hexrgba/test/fixtures/multiple.expected.css
+++ /dev/null
@@ -1,4 +0,0 @@
-.foo {
- border: 1px solid rgba(255,0,0, 0.2);
- border: rgba(255,0,0,.2) 1px solid;
-}
diff --git a/node_modules/postcss-hexrgba/test/fixtures/shorthand.css b/node_modules/postcss-hexrgba/test/fixtures/shorthand.css
deleted file mode 100644
index 6afa9e31..00000000
--- a/node_modules/postcss-hexrgba/test/fixtures/shorthand.css
+++ /dev/null
@@ -1,4 +0,0 @@
-.foo {
- color: rgba(#fff, 0.5);
- background: rgba(#000, .8);
-}
diff --git a/node_modules/postcss-hexrgba/test/fixtures/shorthand.expected.css b/node_modules/postcss-hexrgba/test/fixtures/shorthand.expected.css
deleted file mode 100644
index a229ed70..00000000
--- a/node_modules/postcss-hexrgba/test/fixtures/shorthand.expected.css
+++ /dev/null
@@ -1,4 +0,0 @@
-.foo {
- color: rgba(255,255,255, 0.5);
- background: rgba(0,0,0, .8);
-}
diff --git a/node_modules/postcss-hexrgba/test/fixtures/standard.css b/node_modules/postcss-hexrgba/test/fixtures/standard.css
deleted file mode 100644
index 34f820b3..00000000
--- a/node_modules/postcss-hexrgba/test/fixtures/standard.css
+++ /dev/null
@@ -1,4 +0,0 @@
-.foo {
- color: rgba(#ffffff, 0.5);
- background: rgba(#00b2ff,.8);
-}
diff --git a/node_modules/postcss-hexrgba/test/fixtures/standard.expected.css b/node_modules/postcss-hexrgba/test/fixtures/standard.expected.css
deleted file mode 100644
index 9dfe2dfb..00000000
--- a/node_modules/postcss-hexrgba/test/fixtures/standard.expected.css
+++ /dev/null
@@ -1,4 +0,0 @@
-.foo {
- color: rgba(255,255,255, 0.5);
- background: rgba(0,178,255,.8);
-}
diff --git a/node_modules/postcss-hexrgba/test/mocha.opts b/node_modules/postcss-hexrgba/test/mocha.opts
deleted file mode 100644
index d9a95e80..00000000
--- a/node_modules/postcss-hexrgba/test/mocha.opts
+++ /dev/null
@@ -1 +0,0 @@
---reporter nyan
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));
-
-});