// ------------------------------------
// #METALSMITH - POSTHTML - TEST
// ------------------------------------

'use strict'

const metalsmith = require('metalsmith')
const posthtml = require('../')

metalsmith(__dirname)
    .source('./fixtures')
    .destination('./expect')
    .use(posthtml())
    .build((err) => {
      if (err) throw err
    })

// ------------------------------------
// #METALSMITH - POSTHTML - TEST
// ------------------------------------

const test = require('ava')

const posthtml = require('../')
const metalsmith = require('metalsmith')

test('metalsmith-posthtml', (t) => {
  const plugins = [ require('posthtml-bem')() ]
  const options = {}
  metalsmith(__dirname)
    .source('./fixtures')
    .destination('./expect')
    .use(posthtml(plugins, options))
    .build((err) => {
      if (err) throw err
    })
})

add test