|
1 | 1 | import _ from 'lodash'
|
2 |
| -import postcss from 'postcss' |
| 2 | +import _postcss from 'postcss' |
3 | 3 | import processPlugins from '../src/util/processPlugins'
|
4 | 4 |
|
5 | 5 | function css(nodes) {
|
6 |
| - return postcss.root({ nodes }).toString() |
| 6 | + return _postcss.root({ nodes }).toString() |
7 | 7 | }
|
8 | 8 |
|
9 | 9 | function makeConfig(overrides) {
|
@@ -97,7 +97,7 @@ test('plugins can create utilities with arrays of objects', () => {
|
97 | 97 | test('plugins can create utilities with raw PostCSS nodes', () => {
|
98 | 98 | const { components, utilities } = processPlugins(
|
99 | 99 | [
|
100 |
| - function({ addUtilities }) { |
| 100 | + function({ addUtilities, postcss }) { |
101 | 101 | addUtilities([
|
102 | 102 | postcss.rule({ selector: '.object-fill' }).append([
|
103 | 103 | postcss.decl({
|
@@ -142,7 +142,7 @@ test('plugins can create utilities with raw PostCSS nodes', () => {
|
142 | 142 | test('plugins can create utilities with mixed object styles and PostCSS nodes', () => {
|
143 | 143 | const { components, utilities } = processPlugins(
|
144 | 144 | [
|
145 |
| - function({ addUtilities }) { |
| 145 | + function({ addUtilities, postcss }) { |
146 | 146 | addUtilities([
|
147 | 147 | {
|
148 | 148 | '.object-fill': {
|
@@ -259,7 +259,7 @@ test('plugins can create components with object syntax', () => {
|
259 | 259 | test('plugins can create components with raw PostCSS nodes', () => {
|
260 | 260 | const { components, utilities } = processPlugins(
|
261 | 261 | [
|
262 |
| - function({ addComponents }) { |
| 262 | + function({ addComponents, postcss }) { |
263 | 263 | addComponents([
|
264 | 264 | postcss.rule({ selector: '.btn-blue' }).append([
|
265 | 265 | postcss.decl({
|
@@ -308,7 +308,7 @@ test('plugins can create components with raw PostCSS nodes', () => {
|
308 | 308 | test('plugins can create components with mixed object styles and raw PostCSS nodes', () => {
|
309 | 309 | const { components, utilities } = processPlugins(
|
310 | 310 | [
|
311 |
| - function({ addComponents }) { |
| 311 | + function({ addComponents, postcss }) { |
312 | 312 | addComponents([
|
313 | 313 | postcss.rule({ selector: '.btn-blue' }).append([
|
314 | 314 | postcss.decl({
|
|
0 commit comments