'use strict';

const assert = require('assert');

const prepareContext = require('../lib/prepareContext');
const render = require('../lib/render');
const { nunjucksEnv } = require('../constants');

describe('render', function() {
  it('does a render', function(done) {
    const tpl = 'templates/base.j2';
    const dest = `${__dirname}/dest/base.html`;
    prepareContext({
      data: [],
      groups: {},
      display: {},
    })
      .then(ctx => render(nunjucksEnv, tpl, dest, ctx))
      .then(() => {
        // Look for side-effects
        assert.ok(true);
        done();
      })
      .catch(err => {
        assert.fail(err);
        done();
      });
  });
});

@@ -666,13 +666,144 @@
 );%0A  %7D);
+%0A%0A  it('no-ops with a non-buffer file', function(done) %7B%0A    // What would that even be? How can we trigger that eventuality?%0A  %7D);
 %0A%7D);%0A

Add terrible stub of a test