From 1e85e39630f294c7978dd3631eb399fa9d740a9f Mon Sep 17 00:00:00 2001 From: Thomas Parisot Date: Wed, 13 Dec 2017 14:05:21 +0100 Subject: [PATCH] Run swig tests with nunjucks renderer --- lib/plugins/renderer/index.js | 1 + test/scripts/renderers/index.js | 2 +- test/scripts/renderers/swig.js | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/plugins/renderer/index.js b/lib/plugins/renderer/index.js index 841080140f..ab7117bb94 100644 --- a/lib/plugins/renderer/index.js +++ b/lib/plugins/renderer/index.js @@ -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'); diff --git a/test/scripts/renderers/index.js b/test/scripts/renderers/index.js index a78fdfddc4..4d91a9c781 100644 --- a/test/scripts/renderers/index.js +++ b/test/scripts/renderers/index.js @@ -1,6 +1,6 @@ describe('Renderers', () => { require('./json'); require('./plain'); - // require('./swig'); + require('./swig'); require('./yaml'); }); diff --git a/test/scripts/renderers/swig.js b/test/scripts/renderers/swig.js index fb74b4bac3..b9466ee588 100644 --- a/test/scripts/renderers/swig.js +++ b/test/scripts/renderers/swig.js @@ -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 = [ @@ -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 }}',