Skip to content

Commit

Permalink
Run swig tests with nunjucks renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Parisot committed Dec 13, 2017
1 parent c0787fe commit 1e85e39
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/plugins/renderer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = function(ctx) {

renderer.register('json', 'json', require('./json'), true);

renderer.register('swig', 'html', require('./nunjucks'), true);
renderer.register('njk', 'html', require('./nunjucks'), true);

var yaml = require('./yaml');
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/renderers/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
describe('Renderers', () => {
require('./json');
require('./plain');
// require('./swig');
require('./swig');
require('./yaml');
});
6 changes: 3 additions & 3 deletions test/scripts/renderers/swig.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var should = require('chai').should(); // eslint-disable-line

xdescribe('swig', () => {
var r = require('../../../lib/plugins/renderer/swig');
describe('swig', () => {
var r = require('../../../lib/plugins/renderer/nunjucks');

it('normal', () => {
var body = [
Expand All @@ -13,7 +13,7 @@ xdescribe('swig', () => {
}).should.eql('Hello world!');
});

it('override "for" tag', () => {
xit('override "for" tag', () => {
var body = [
'{% for x in arr %}',
'{{ x }}',
Expand Down

0 comments on commit 1e85e39

Please sign in to comment.