'use strict'

var fs = require('fs')
var test = require('tape')
var postcss = require('postcss')
var shorthandExpand = require('..')

test('postcss-shorthand-expand', function (t) {
  t.plan(1)

  testFixture(t, 'input.css', 'output.css')
})

function fixture (name) {
    return fs.readFileSync('test/fixtures/' + name, 'utf8')
}

function testFixture (t, input, output) {
    t.equal(
      postcss([ shorthandExpand() ])
        .process(fixture(input)).css,
      fixture(output)
    )
}

@@ -262,18 +262,16 @@
 name) %7B%0A
-  
   return
@@ -365,18 +365,16 @@
 tput) %7B%0A
-  
   t.equa
@@ -376,18 +376,16 @@
 .equal(%0A
-  
     post
@@ -417,18 +417,16 @@
 )%0A      
-  
 .process
@@ -451,18 +451,16 @@
 ss,%0A    
-  
 fixture(
@@ -467,16 +467,14 @@
 output)%0A
-  
   )%0A%7D%0A

Fix formatting