const browserify = require('browserify')
const path = require('path')
const test = require('tape')
const bl = require('bl')
const fs = require('fs')

test('sheetify-sass', function (t) {
  t.test('should transform sass and scss', function (t) {
    const expected = fs.readFileSync(path.join(__dirname, 'expected.css'))

    t.plan(2)
    browserify(path.join(__dirname, 'source.js'))
      .transform('sheetify', {
        transform: [ './' ]
      })
      .plugin('css-extract', {
        out: createWs
      }).bundle()

    function createWs () {
      return bl(function (err, buf) {
        t.ifError(err, 'no error')
        t.equal(String(buf).trim(), String(expected).trim())
      })
    }
  })
})

@@ -329,9 +329,38 @@
 lan(
-2
+4)%0A%0A    const files = new Set(
 )%0A  
@@ -407,16 +407,163 @@
 e.js'))%0A
+      .on('transform', function (transform) %7B%0A        transform.on('file', function (filename) %7B%0A          files.add(filename)%0A        %7D)%0A      %7D)%0A
       .t
@@ -683,16 +683,23 @@
       %7D)
+%0A      
 .bundle(
@@ -801,16 +801,16 @@
 error')%0A
-
         
@@ -861,16 +861,146 @@
 .trim())
+%0A%0A        t.ok(files.has(path.join(__dirname, 'import.scss')))%0A        t.ok(files.has(path.join(__dirname, 'indent-import.sass')))
 %0A      %7D

Add includedFiles test