'use strict';
require('./util/patch-module');

var chai = require('chai');
chai.config.includeStack = true;

var expect = require('chai').expect;
var nodePath = require('path');
require('../compiler');
var autotest = require('./autotest');
var taglibLoader = require('../compiler').taglibLoader;

describe('taglib-loader' , function() {
    var autoTestDir = nodePath.join(__dirname, 'autotests/taglib-loader');

    autotest.scanDir(autoTestDir, function run(dir, helpers, done) {
        var test = require(nodePath.join(dir, 'test.js'));
        test.check(taglibLoader, expect);
        done();
    });
});
