var nodePath = require("path");

exports.check = function(marko, markoCompiler, expect, snapshot, done) {
  var templatePath = nodePath.join(__dirname, "template.marko");
  var template = require(templatePath).default;
  template.render(
    {
      name: "John"
    },
    function(err, result) {
      if (err) {
        return done(err);
      }

      snapshot(result.toString());
      done();
    }
  );
};
