summaryrefslogtreecommitdiffstats
path: root/dgbuilder/dgeflows/node_modules/ejs/test
diff options
context:
space:
mode:
authorTimoney, Dan (dt5972) <dtimoney@att.com>2018-11-06 14:15:05 -0500
committerTimoney, Dan (dt5972) <dtimoney@att.com>2018-11-06 14:16:18 -0500
commitd9642fafddbaa28789339e1989c4583af003a193 (patch)
tree0442af1ba4e793433fac5871dd8e69c98a056446 /dgbuilder/dgeflows/node_modules/ejs/test
parent33d814f236d4c3e4246851c810bdbbab5090abbb (diff)
Fix license issues
Fix license definition in package.json files Remove obsolete dgbuilder from SDNC (dgbuilder now in CCSDK) Change-Id: Iee0bf9468f081c5957eae2e873efbea6fb6be354 Issue-ID: SDNC-489 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com> Former-commit-id: 4e104ac4183dd46124753c4571939e765a124508
Diffstat (limited to 'dgbuilder/dgeflows/node_modules/ejs/test')
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/ejs.js761
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/backslash.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/backslash.html1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/comments.ejs7
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/comments.html6
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/consecutive-tags.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/consecutive-tags.html1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/double-quote.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/double-quote.html1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/error.ejs5
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/error.out8
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/fail.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/hello-world.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include-abspath.ejs5
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include-simple.ejs3
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include-simple.html3
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include.css.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include.css.html3
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include.ejs5
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include.html9
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_cache.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_cache.html1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor.css.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor.css.html3
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor.ejs5
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor.html9
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor_cache.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor_cache.html1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/includes/bom.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/includes/menu-item.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/includes/menu/item.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/literal.ejs3
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/literal.html3
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu.ejs15
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu.html3
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu_preprocessor.ejs11
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu_preprocessor.html3
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu_var.ejs15
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/messed.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/messed.html1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/newlines.ejs5
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/newlines.html9
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/newlines.mixed.ejs6
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/newlines.mixed.html4
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.newlines.ejs5
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.newlines.error.ejs5
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.newlines.html5
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.semicolons.ejs8
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.semicolons.html3
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/para.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/pet.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/single-quote.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/single-quote.html1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/style.css3
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/user-no-with.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/fixtures/user.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/mocha.opts2
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/tmp/include.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/tmp/include_preprocessor.ejs1
-rw-r--r--dgbuilder/dgeflows/node_modules/ejs/test/tmp/renderFile.ejs1
60 files changed, 0 insertions, 968 deletions
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/ejs.js b/dgbuilder/dgeflows/node_modules/ejs/test/ejs.js
deleted file mode 100644
index 327e94ef..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/ejs.js
+++ /dev/null
@@ -1,761 +0,0 @@
-/* jshint mocha: true */
-
-/**
- * Module dependencies.
- */
-
-var ejs = require('..')
- , fs = require('fs')
- , read = fs.readFileSync
- , assert = require('assert')
- , path = require('path');
-
-try {
- fs.mkdirSync(__dirname + '/tmp');
-} catch (ex) {
- if (ex.code !== 'EEXIST') {
- throw ex;
- }
-}
-
-// From https://gist.github.com/pguillory/729616
-function hook_stdio(stream, callback) {
- var old_write = stream.write;
-
- stream.write = (function() {
- return function(string, encoding, fd) {
- callback(string, encoding, fd);
- };
- })(stream.write);
-
- return function() {
- stream.write = old_write;
- };
-}
-
-/**
- * Load fixture `name`.
- */
-
-function fixture(name) {
- return read('test/fixtures/' + name, 'utf8').replace(/\r/g, '').trim();
-}
-
-/**
- * User fixtures.
- */
-
-var users = [];
-users.push({name: 'geddy'});
-users.push({name: 'neil'});
-users.push({name: 'alex'});
-
-suite('ejs.compile(str, options)', function () {
- test('compile to a function', function () {
- var fn = ejs.compile('<p>yay</p>');
- assert.equal(fn(), '<p>yay</p>');
- });
-
- test('empty input works', function () {
- var fn = ejs.compile('');
- assert.equal(fn(), '');
- });
-
- test('throw if there are syntax errors', function () {
- try {
- ejs.compile(fixture('fail.ejs'));
- }
- catch (err) {
- assert.ok(err.message.indexOf('compiling ejs') > -1);
-
- try {
- ejs.compile(fixture('fail.ejs'), {filename: 'fail.ejs'});
- }
- catch (err) {
- assert.ok(err.message.indexOf('fail.ejs') > -1);
- return;
- }
- }
- throw new Error('no error reported when there should be');
- });
-
- test('allow customizing delimiter local var', function () {
- var fn;
- fn = ejs.compile('<p><?= name ?></p>', {delimiter: '?'});
- assert.equal(fn({name: 'geddy'}), '<p>geddy</p>');
-
- fn = ejs.compile('<p><:= name :></p>', {delimiter: ':'});
- assert.equal(fn({name: 'geddy'}), '<p>geddy</p>');
-
- fn = ejs.compile('<p><$= name $></p>', {delimiter: '$'});
- assert.equal(fn({name: 'geddy'}), '<p>geddy</p>');
- });
-
- test('default to using ejs.delimiter', function () {
- var fn;
- ejs.delimiter = '&';
- fn = ejs.compile('<p><&= name &></p>');
- assert.equal(fn({name: 'geddy'}), '<p>geddy</p>');
-
- fn = ejs.compile('<p><|= name |></p>', {delimiter: '|'});
- assert.equal(fn({name: 'geddy'}), '<p>geddy</p>');
- delete ejs.delimiter;
- });
-
- test('have a working client option', function () {
- var fn
- , str
- , preFn;
- fn = ejs.compile('<p><%= foo %></p>', {client: true});
- str = fn.toString();
- if (!process.env.running_under_istanbul) {
- eval('var preFn = ' + str);
- assert.equal(preFn({foo: 'bar'}), '<p>bar</p>');
- }
- });
-
- test('support client mode without locals', function () {
- var fn
- , str
- , preFn;
- fn = ejs.compile('<p><%= "foo" %></p>', {client: true});
- str = fn.toString();
- if (!process.env.running_under_istanbul) {
- eval('var preFn = ' + str);
- assert.equal(preFn(), '<p>foo</p>');
- }
- });
-});
-
-suite('ejs.render(str, data)', function () {
- test('render the template', function () {
- assert.equal(ejs.render('<p>yay</p>'), '<p>yay</p>');
- });
-
- test('empty input works', function () {
- assert.equal(ejs.render(''), '');
- });
-
- test('undefined renders nothing escaped', function () {
- assert.equal(ejs.render('<%= undefined %>'), '');
- });
-
- test('undefined renders nothing raw', function () {
- assert.equal(ejs.render('<%- undefined %>'), '');
- });
-
- test('null renders nothing escaped', function () {
- assert.equal(ejs.render('<%= null %>'), '');
- });
-
- test('null renders nothing raw', function () {
- assert.equal(ejs.render('<%- null %>'), '');
- });
-
- test('zero-value data item renders something escaped', function () {
- assert.equal(ejs.render('<%= 0 %>'), '0');
- });
-
- test('zero-value data object renders something raw', function () {
- assert.equal(ejs.render('<%- 0 %>'), '0');
- });
-
- test('accept locals', function () {
- assert.equal(ejs.render('<p><%= name %></p>', {name: 'geddy'}),
- '<p>geddy</p>');
- });
-
- test('accept locals without using with() {}', function () {
- assert.equal(ejs.render('<p><%= locals.name %></p>', {name: 'geddy'},
- {_with: false}),
- '<p>geddy</p>');
- assert.throws(function() {
- ejs.render('<p><%= name %></p>', {name: 'geddy'},
- {_with: false});
- }, /name is not defined/);
- });
-
- test('accept custom name for locals', function () {
- ejs.localsName = 'it';
- assert.equal(ejs.render('<p><%= it.name %></p>', {name: 'geddy'},
- {_with: false}),
- '<p>geddy</p>');
- assert.throws(function() {
- ejs.render('<p><%= name %></p>', {name: 'geddy'},
- {_with: false});
- }, /name is not defined/);
- ejs.localsName = 'locals';
- });
-
- test('support caching (pass 1)', function () {
- var file = __dirname + '/tmp/render.ejs'
- , options = {cache: true, filename: file}
- , out = ejs.render('<p>Old</p>', {}, options)
- , expected = '<p>Old</p>';
- assert.equal(out, expected);
- });
-
- test('support caching (pass 2)', function () {
- var file = __dirname + '/tmp/render.ejs'
- , options = {cache: true, filename: file}
- , out = ejs.render('<p>New</p>', {}, options)
- , expected = '<p>Old</p>';
- assert.equal(out, expected);
- });
-});
-
-suite('ejs.renderFile(path, [data], [options], fn)', function () {
- test('render a file', function(done) {
- ejs.renderFile('test/fixtures/para.ejs', function(err, html) {
- if (err) {
- return done(err);
- }
- assert.equal(html, '<p>hey</p>');
- done();
- });
- });
-
- test('callback is async', function(done) {
- var async = false;
- ejs.renderFile('test/fixtures/para.ejs', function(err, html) {
- if (async) {
- return done();
- }
- throw new Error('not async');
- });
- async = true;
- });
-
- test('accept locals', function(done) {
- var data = {name: 'fonebone'}
- , options = {delimiter: '$'};
- ejs.renderFile('test/fixtures/user.ejs', data, options, function(err, html) {
- if (err) {
- return done(err);
- }
- assert.equal(html, '<h1>fonebone</h1>');
- done();
- });
- });
-
- test('accept locals without using with() {}', function(done) {
- var data = {name: 'fonebone'}
- , options = {delimiter: '$', _with: false}
- , doneCount = 0;
- ejs.renderFile('test/fixtures/user-no-with.ejs', data, options,
- function(err, html) {
- if (err) {
- if (doneCount === 2) {
- return;
- }
- doneCount = 2;
- return done(err);
- }
- assert.equal(html, '<h1>fonebone</h1>');
- doneCount++;
- if (doneCount === 2) {
- done();
- }
- });
- ejs.renderFile('test/fixtures/user.ejs', data, options, function(err) {
- if (!err) {
- if (doneCount === 2) {
- return;
- }
- doneCount = 2;
- return done(new Error('error not thrown'));
- }
- doneCount++;
- if (doneCount === 2) {
- done();
- }
- });
- });
-
- test('not catch err thrown by callback', function(done) {
- var data = {name: 'fonebone'}
- , options = {delimiter: '$'}
- , counter = 0;
-
- var d = require('domain').create();
- d.on('error', function (err) {
- assert.equal(counter, 1);
- assert.equal(err.message, 'Exception in callback');
- done();
- });
- d.run(function () {
- // process.nextTick() needed to work around mochajs/mocha#513
- //
- // tl;dr: mocha doesn't support synchronous exception throwing in
- // domains. Have to make it async. Ticket closed because: "domains are
- // deprecated :D"
- process.nextTick(function () {
- ejs.renderFile('test/fixtures/user.ejs', data, options,
- function(err) {
- counter++;
- if (err) {
- assert.notEqual(err.message, 'Exception in callback');
- return done(err);
- }
- throw new Error('Exception in callback');
- });
- });
- });
- });
-
- test('support caching (pass 1)', function (done) {
- var expected = '<p>Old</p>'
- , file = __dirname + '/tmp/renderFile.ejs'
- , options = {cache: true};
- fs.writeFileSync(file, '<p>Old</p>');
-
- ejs.renderFile(file, {}, options, function (err, out) {
- if (err) {
- done(err);
- }
- assert.equal(out, expected);
- done();
- });
- });
-
- test('support caching (pass 2)', function (done) {
- var expected = '<p>Old</p>'
- , file = __dirname + '/tmp/renderFile.ejs'
- , options = {cache: true};
- fs.writeFileSync(file, '<p>New</p>');
-
- ejs.renderFile(file, {}, options, function (err, out) {
- if (err) {
- done(err);
- }
- assert.equal(out, expected);
- done();
- });
- });
-});
-
-suite('ejs.clearCache()', function () {
- test('work properly', function () {
- var expected = '<p>Old</p>'
- , file = __dirname + '/tmp/clearCache.ejs'
- , options = {cache: true, filename: file}
- , out = ejs.render('<p>Old</p>', {}, options);
- assert.equal(out, expected);
-
- ejs.clearCache();
-
- expected = '<p>New</p>';
- out = ejs.render('<p>New</p>', {}, options);
- assert.equal(out, expected);
- });
-});
-
-suite('<%', function () {
- test('without semicolons', function () {
- assert.equal(ejs.render(fixture('no.semicolons.ejs')),
- fixture('no.semicolons.html'));
- });
-});
-
-suite('<%=', function () {
- test('escape &amp;<script>', function () {
- assert.equal(ejs.render('<%= name %>', {name: '&nbsp;<script>'}),
- '&amp;nbsp;&lt;script&gt;');
- });
-
- test('should escape \'', function () {
- assert.equal(ejs.render('<%= name %>', {name: 'The Jones\'s'}),
- 'The Jones&#39;s');
- });
-
- test('should escape &foo_bar;', function () {
- assert.equal(ejs.render('<%= name %>', {name: '&foo_bar;'}),
- '&amp;foo_bar;');
- });
-});
-
-suite('<%-', function () {
- test('not escape', function () {
- assert.equal(ejs.render('<%- name %>', {name: '<script>'}),
- '<script>');
- });
-
- test('terminate gracefully if no close tag is found', function () {
- try {
- ejs.compile('<h1>oops</h1><%- name ->');
- throw new Error('Expected parse failure');
- }
- catch (err) {
- assert.ok(err.message.indexOf('Could not find matching close tag for') > -1);
- }
- });
-});
-
-suite('%>', function () {
- test('produce newlines', function () {
- assert.equal(ejs.render(fixture('newlines.ejs'), {users: users}),
- fixture('newlines.html'));
- });
- test('works with `-%>` interspersed', function () {
- assert.equal(ejs.render(fixture('newlines.mixed.ejs'), {users: users}),
- fixture('newlines.mixed.html'));
- });
- test('consecutive tags work', function () {
- assert.equal(ejs.render(fixture('consecutive-tags.ejs')),
- fixture('consecutive-tags.html'));
- });
-});
-
-suite('-%>', function () {
- test('not produce newlines', function () {
- assert.equal(ejs.render(fixture('no.newlines.ejs'), {users: users}),
- fixture('no.newlines.html'));
- });
- test('stack traces work', function () {
- try {
- ejs.render(fixture('no.newlines.error.ejs'));
- }
- catch (e) {
- if (e.message.indexOf('>> 4| <%= qdata %>') > -1) {
- return;
- }
- throw e;
- }
- throw new Error('Expected ReferenceError');
- });
-});
-
-suite('<%%', function () {
- test('produce literals', function () {
- assert.equal(ejs.render('<%%- "foo" %>'),
- '<%- "foo" %>');
- });
- test('work without an end tag', function () {
- assert.equal(ejs.render('<%%'), '<%');
- assert.equal(ejs.render(fixture('literal.ejs'), {}, {delimiter: ' '}),
- fixture('literal.html'));
- });
-});
-
-suite('single quotes', function () {
- test('not mess up the constructed function', function () {
- assert.equal(ejs.render(fixture('single-quote.ejs')),
- fixture('single-quote.html'));
- });
-});
-
-suite('double quotes', function () {
- test('not mess up the constructed function', function () {
- assert.equal(ejs.render(fixture('double-quote.ejs')),
- fixture('double-quote.html'));
- });
-});
-
-suite('backslashes', function () {
- test('escape', function () {
- assert.equal(ejs.render(fixture('backslash.ejs')),
- fixture('backslash.html'));
- });
-});
-
-suite('messed up whitespace', function () {
- test('work', function () {
- assert.equal(ejs.render(fixture('messed.ejs'), {users: users}),
- fixture('messed.html'));
- });
-});
-
-suite('exceptions', function () {
- test('produce useful stack traces', function () {
- try {
- ejs.render(fixture('error.ejs'), {}, {filename: 'error.ejs'});
- }
- catch (err) {
- assert.equal(err.path, 'error.ejs');
- assert.equal(err.stack.split('\n').slice(0, 8).join('\n'), fixture('error.out'));
- return;
- }
- throw new Error('no error reported when there should be');
- });
-
- test('not include fancy stack info if compileDebug is false', function () {
- try {
- ejs.render(fixture('error.ejs'), {}, {
- filename: 'error.ejs',
- compileDebug: false
- });
- }
- catch (err) {
- assert.ok(!err.path);
- assert.notEqual(err.stack.split('\n').slice(0, 8).join('\n'), fixture('error.out'));
- return;
- }
- throw new Error('no error reported when there should be');
- });
-
- var unhook = null;
- test('log JS source when debug is set', function (done) {
- var out = ''
- , needToExit = false;
- unhook = hook_stdio(process.stdout, function (str) {
- out += str;
- if (needToExit) {
- return;
- }
- if (out.indexOf('__output')) {
- needToExit = true;
- unhook();
- unhook = null;
- return done();
- }
- });
- ejs.render(fixture('hello-world.ejs'), {}, {debug: true});
- });
- teardown(function() {
- if (!unhook) {
- return;
- }
- unhook();
- unhook = null;
- });
-});
-
-suite('include()', function () {
- test('include ejs', function () {
- var file = 'test/fixtures/include-simple.ejs';
- assert.equal(ejs.render(fixture('include-simple.ejs'), {}, {filename: file}),
- fixture('include-simple.html'));
- });
-
- test('include ejs fails without `filename`', function () {
- try {
- ejs.render(fixture('include-simple.ejs'));
- }
- catch (err) {
- assert.ok(err.message.indexOf('requires the \'filename\' option') > -1);
- return;
- }
- throw new Error('expected inclusion error');
- });
-
- test('strips BOM', function () {
- assert.equal(
- ejs.render('<%- include("fixtures/includes/bom.ejs") %>',
- {}, {filename: path.join(__dirname, 'f.ejs')}),
- '<p>This is a file with BOM.</p>');
- });
-
- test('include ejs with locals', function () {
- var file = 'test/fixtures/include.ejs';
- assert.equal(ejs.render(fixture('include.ejs'), {pets: users}, {filename: file, delimiter: '@'}),
- fixture('include.html'));
- });
-
- test('include ejs with absolute path and locals', function () {
- var file = 'test/fixtures/include-abspath.ejs';
- assert.equal(ejs.render(fixture('include-abspath.ejs'),
- {dir: path.join(__dirname, 'fixtures'), pets: users, path: path},
- {filename: file, delimiter: '@'}),
- fixture('include.html'));
- });
-
- test('work when nested', function () {
- var file = 'test/fixtures/menu.ejs';
- assert.equal(ejs.render(fixture('menu.ejs'), {pets: users}, {filename: file}),
- fixture('menu.html'));
- });
-
- test('work with a variable path', function () {
- var file = 'test/fixtures/menu_var.ejs',
- includePath = 'includes/menu-item';
- assert.equal(ejs.render(fixture('menu.ejs'), {pets: users, varPath: includePath}, {filename: file}),
- fixture('menu.html'));
- });
-
- test('include arbitrary files as-is', function () {
- var file = 'test/fixtures/include.css.ejs';
- assert.equal(ejs.render(fixture('include.css.ejs'), {pets: users}, {filename: file}),
- fixture('include.css.html'));
- });
-
- test('pass compileDebug to include', function () {
- var file = 'test/fixtures/include.ejs'
- , fn;
- fn = ejs.compile(fixture('include.ejs'), {
- filename: file
- , delimiter: '@'
- , compileDebug: false
- });
- try {
- // Render without a required variable reference
- fn({foo: 'asdf'});
- }
- catch(e) {
- assert.equal(e.message, 'pets is not defined');
- assert.ok(!e.path);
- return;
- }
- throw new Error('no error reported when there should be');
- });
-
- test('is dynamic', function () {
- fs.writeFileSync(__dirname + '/tmp/include.ejs', '<p>Old</p>');
- var file = 'test/fixtures/include_cache.ejs'
- , options = {filename: file}
- , out = ejs.compile(fixture('include_cache.ejs'), options);
- assert.equal(out(), '<p>Old</p>');
-
- fs.writeFileSync(__dirname + '/tmp/include.ejs', '<p>New</p>');
- assert.equal(out(), '<p>New</p>');
- });
-
- test('support caching (pass 1)', function () {
- fs.writeFileSync(__dirname + '/tmp/include.ejs', '<p>Old</p>');
- var file = 'test/fixtures/include_cache.ejs'
- , options = {cache: true, filename: file}
- , out = ejs.render(fixture('include_cache.ejs'), {}, options)
- , expected = fixture('include_cache.html');
- assert.equal(out, expected);
- });
-
- test('support caching (pass 2)', function () {
- fs.writeFileSync(__dirname + '/tmp/include.ejs', '<p>New</p>');
- var file = 'test/fixtures/include_cache.ejs'
- , options = {cache: true, filename: file}
- , out = ejs.render(fixture('include_cache.ejs'), {}, options)
- , expected = fixture('include_cache.html');
- assert.equal(out, expected);
- });
-});
-
-suite('preprocessor include', function () {
- test('work', function () {
- var file = 'test/fixtures/include_preprocessor.ejs';
- assert.equal(ejs.render(fixture('include_preprocessor.ejs'), {pets: users}, {filename: file, delimiter: '@'}),
- fixture('include_preprocessor.html'));
- });
-
- test('fails without `filename`', function () {
- try {
- ejs.render(fixture('include_preprocessor.ejs'), {pets: users}, {delimiter: '@'});
- }
- catch (err) {
- assert.ok(err.message.indexOf('requires the \'filename\' option') > -1);
- return;
- }
- throw new Error('expected inclusion error');
- });
-
- test('strips BOM', function () {
- assert.equal(
- ejs.render('<% include fixtures/includes/bom.ejs %>',
- {}, {filename: path.join(__dirname, 'f.ejs')}),
- '<p>This is a file with BOM.</p>');
- });
-
- test('work when nested', function () {
- var file = 'test/fixtures/menu_preprocessor.ejs';
- assert.equal(ejs.render(fixture('menu_preprocessor.ejs'), {pets: users}, {filename: file}),
- fixture('menu_preprocessor.html'));
- });
-
- test('include arbitrary files as-is', function () {
- var file = 'test/fixtures/include_preprocessor.css.ejs';
- assert.equal(ejs.render(fixture('include_preprocessor.css.ejs'), {pets: users}, {filename: file}),
- fixture('include_preprocessor.css.html'));
- });
-
- test('pass compileDebug to include', function () {
- var file = 'test/fixtures/include_preprocessor.ejs'
- , fn;
- fn = ejs.compile(fixture('include_preprocessor.ejs'), {
- filename: file
- , delimiter: '@'
- , compileDebug: false
- });
- try {
- // Render without a required variable reference
- fn({foo: 'asdf'});
- }
- catch(e) {
- assert.equal(e.message, 'pets is not defined');
- assert.ok(!e.path);
- return;
- }
- throw new Error('no error reported when there should be');
- });
-
- test('is static', function () {
- fs.writeFileSync(__dirname + '/tmp/include_preprocessor.ejs', '<p>Old</p>');
- var file = 'test/fixtures/include_preprocessor_cache.ejs'
- , options = {filename: file}
- , out = ejs.compile(fixture('include_preprocessor_cache.ejs'), options);
- assert.equal(out(), '<p>Old</p>');
-
- fs.writeFileSync(__dirname + '/tmp/include_preprocessor.ejs', '<p>New</p>');
- assert.equal(out(), '<p>Old</p>');
- });
-
- test('support caching (pass 1)', function () {
- fs.writeFileSync(__dirname + '/tmp/include_preprocessor.ejs', '<p>Old</p>');
- var file = 'test/fixtures/include_preprocessor_cache.ejs'
- , options = {cache: true, filename: file}
- , out = ejs.render(fixture('include_preprocessor_cache.ejs'), {}, options)
- , expected = fixture('include_preprocessor_cache.html');
- assert.equal(out, expected);
- });
-
- test('support caching (pass 2)', function () {
- fs.writeFileSync(__dirname + '/tmp/include_preprocessor.ejs', '<p>New</p>');
- var file = 'test/fixtures/include_preprocessor_cache.ejs'
- , options = {cache: true, filename: file}
- , out = ejs.render(fixture('include_preprocessor_cache.ejs'), {}, options)
- , expected = fixture('include_preprocessor_cache.html');
- assert.equal(out, expected);
- });
-});
-
-suite('comments', function () {
- test('fully render with comments removed', function () {
- assert.equal(ejs.render(fixture('comments.ejs')),
- fixture('comments.html'));
- });
-});
-
-suite('require', function () {
-
- // Only works with inline/preprocessor includes
- test('allow ejs templates to be required as node modules', function () {
- var file = 'test/fixtures/include_preprocessor.ejs'
- , template = require(__dirname + '/fixtures/menu_preprocessor.ejs');
- if (!process.env.running_under_istanbul) {
- assert.equal(template({filename: file, pets: users}),
- fixture('menu_preprocessor.html'));
- }
- });
-});
-
-suite('examples', function () {
- function noop () {}
- fs.readdirSync('examples').forEach(function (f) {
- if (!/\.js$/.test(f)) {
- return;
- }
- suite(f, function () {
- test('doesn\'t throw any errors', function () {
- var stderr = hook_stdio(process.stderr, noop)
- , stdout = hook_stdio(process.stdout, noop);
- try {
- require('../examples/' + f);
- }
- catch (ex) {
- stdout();
- stderr();
- throw ex;
- }
- stdout();
- stderr();
- });
- });
- });
-});
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/backslash.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/backslash.ejs
deleted file mode 100644
index eeb4a482..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/backslash.ejs
+++ /dev/null
@@ -1 +0,0 @@
-\foo \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/backslash.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/backslash.html
deleted file mode 100644
index eeb4a482..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/backslash.html
+++ /dev/null
@@ -1 +0,0 @@
-\foo \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/comments.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/comments.ejs
deleted file mode 100644
index 48ece707..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/comments.ejs
+++ /dev/null
@@ -1,7 +0,0 @@
-<li><a href="foo"><% // double-slash comment %>foo</li>
-<li><a href="bar"><% /* C-style comment */ %>bar</li>
-<li><a href="baz"><% // double-slash comment with newline
- %>baz</li>
-<li><a href="qux"><% var x = 'qux'; // double-slash comment @ end of line %><%= x %></li>
-<li><a href="fee"><%# ERB style comment %>fee</li>
-<li><a href="bah"><%= 'not a ' + '//' + ' comment' %></a></li>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/comments.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/comments.html
deleted file mode 100644
index 5a986829..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/comments.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<li><a href="foo">foo</li>
-<li><a href="bar">bar</li>
-<li><a href="baz">baz</li>
-<li><a href="qux">qux</li>
-<li><a href="fee">fee</li>
-<li><a href="bah">not a // comment</a></li> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/consecutive-tags.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/consecutive-tags.ejs
deleted file mode 100644
index 175f5c3a..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/consecutive-tags.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<% var a = 'foo' %><% var b = 'bar' %><%= a %>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/consecutive-tags.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/consecutive-tags.html
deleted file mode 100644
index 257cc564..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/consecutive-tags.html
+++ /dev/null
@@ -1 +0,0 @@
-foo
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/double-quote.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/double-quote.ejs
deleted file mode 100644
index 3bccdcfd..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/double-quote.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<p><%= "lo" + 'ki' %>'s "wheelchair"</p> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/double-quote.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/double-quote.html
deleted file mode 100644
index 64739798..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/double-quote.html
+++ /dev/null
@@ -1 +0,0 @@
-<p>loki's "wheelchair"</p> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/error.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/error.ejs
deleted file mode 100644
index f032730b..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/error.ejs
+++ /dev/null
@@ -1,5 +0,0 @@
-<ul>
- <% if (users) { %>
- <p>Has users</p>
- <% } %>
-</ul> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/error.out b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/error.out
deleted file mode 100644
index a2c91082..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/error.out
+++ /dev/null
@@ -1,8 +0,0 @@
-ReferenceError: error.ejs:2
- 1| <ul>
- >> 2| <% if (users) { %>
- 3| <p>Has users</p>
- 4| <% } %>
- 5| </ul>
-
-users is not defined \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/fail.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/fail.ejs
deleted file mode 100644
index 1a7a0f7d..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/fail.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<% function foo() return 'foo'; %> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/hello-world.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/hello-world.ejs
deleted file mode 100644
index e2e353ea..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/hello-world.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<p>Hello world!</p>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include-abspath.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include-abspath.ejs
deleted file mode 100644
index 26b0522d..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include-abspath.ejs
+++ /dev/null
@@ -1,5 +0,0 @@
-<ul>
- <@ pets.forEach(function(pet){ @>
- <@- include(path.join(dir, 'pet'), {pet: pet}); @>
- <@ }); @>
-</ul>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include-simple.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include-simple.ejs
deleted file mode 100644
index a874878d..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include-simple.ejs
+++ /dev/null
@@ -1,3 +0,0 @@
-<ul>
- <%- include('hello-world'); %>
-</ul>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include-simple.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include-simple.html
deleted file mode 100644
index 3b729efb..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include-simple.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<ul>
- <p>Hello world!</p>
-</ul> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include.css.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include.css.ejs
deleted file mode 100644
index cd184b41..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include.css.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<style><%- include('style.css', {value: 'bar'}); %></style>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include.css.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include.css.html
deleted file mode 100644
index 43343fef..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include.css.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<style>body {
- foo: 'bar';
-}</style> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include.ejs
deleted file mode 100644
index f2295ee1..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include.ejs
+++ /dev/null
@@ -1,5 +0,0 @@
-<ul>
- <@ pets.forEach(function(pet){ @>
- <@- include('pet', {pet: pet}); @>
- <@ }); @>
-</ul>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include.html
deleted file mode 100644
index 4557edb6..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<ul>
-
- <li>geddy</li>
-
- <li>neil</li>
-
- <li>alex</li>
-
-</ul>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_cache.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_cache.ejs
deleted file mode 100644
index 439193cb..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_cache.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<%- include('../tmp/include') %>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_cache.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_cache.html
deleted file mode 100644
index be20e58b..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_cache.html
+++ /dev/null
@@ -1 +0,0 @@
-<p>Old</p> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor.css.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor.css.ejs
deleted file mode 100644
index f47358bd..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor.css.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<style><% var value = 'bar' %><% include style.css %></style> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor.css.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor.css.html
deleted file mode 100644
index 43343fef..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor.css.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<style>body {
- foo: 'bar';
-}</style> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor.ejs
deleted file mode 100644
index f2728c52..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor.ejs
+++ /dev/null
@@ -1,5 +0,0 @@
-<ul>
- <@ pets.forEach(function(pet){ @>
- <@ include pet @>
- <@ }) @>
-</ul>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor.html
deleted file mode 100644
index 4557edb6..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<ul>
-
- <li>geddy</li>
-
- <li>neil</li>
-
- <li>alex</li>
-
-</ul>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor_cache.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor_cache.ejs
deleted file mode 100644
index ae609231..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor_cache.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<%- include ../tmp/include_preprocessor %>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor_cache.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor_cache.html
deleted file mode 100644
index be20e58b..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/include_preprocessor_cache.html
+++ /dev/null
@@ -1 +0,0 @@
-<p>Old</p> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/includes/bom.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/includes/bom.ejs
deleted file mode 100644
index cc198baa..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/includes/bom.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<p>This is a file with BOM.</p>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/includes/menu-item.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/includes/menu-item.ejs
deleted file mode 100644
index 37cca5f9..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/includes/menu-item.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<li><% include menu/item %></li> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/includes/menu/item.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/includes/menu/item.ejs
deleted file mode 100644
index 8abc3fe4..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/includes/menu/item.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<a href="/<%= url %>"><%= title %></a> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/literal.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/literal.ejs
deleted file mode 100644
index 9f6bf81e..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/literal.ejs
+++ /dev/null
@@ -1,3 +0,0 @@
-<pre>There should be a space followed by a less-than sign and then two more
-spaces in the next line:
- < .</pre>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/literal.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/literal.html
deleted file mode 100644
index d9922500..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/literal.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<pre>There should be a space followed by a less-than sign and then two more
-spaces in the next line:
- < .</pre> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu.ejs
deleted file mode 100644
index 03099901..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu.ejs
+++ /dev/null
@@ -1,15 +0,0 @@
-<%- include('includes/menu-item', {
- url: '/foo'
-, title: 'Foo'
-}); -%>
-
-<%- include('includes/menu-item', {
- url: '/bar'
-, title: 'Bar'
-}); -%>
-
-<%- include('includes/menu-item', {
- url: '/baz'
-, title: 'Baz'
-}); -%>
-
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu.html
deleted file mode 100644
index 1f9e45fd..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<li><a href="//foo">Foo</a></li>
-<li><a href="//bar">Bar</a></li>
-<li><a href="//baz">Baz</a></li> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu_preprocessor.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu_preprocessor.ejs
deleted file mode 100644
index 61fad418..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu_preprocessor.ejs
+++ /dev/null
@@ -1,11 +0,0 @@
-<% var url = '/foo' -%>
-<% var title = 'Foo' -%>
-<% include includes/menu-item -%>
-
-<% var url = '/bar' -%>
-<% var title = 'Bar' -%>
-<% include includes/menu-item -%>
-
-<% var url = '/baz' -%>
-<% var title = 'Baz' -%>
-<% include includes/menu-item -%> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu_preprocessor.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu_preprocessor.html
deleted file mode 100644
index 1f9e45fd..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu_preprocessor.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<li><a href="//foo">Foo</a></li>
-<li><a href="//bar">Bar</a></li>
-<li><a href="//baz">Baz</a></li> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu_var.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu_var.ejs
deleted file mode 100644
index a421dcb8..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/menu_var.ejs
+++ /dev/null
@@ -1,15 +0,0 @@
-<%- include(varPath, {
- url: '/foo'
-, title: 'Foo'
-}); -%>
-
-<%- include(varPath, {
- url: '/bar'
-, title: 'Bar'
-}); -%>
-
-<%- include(varPath, {
- url: '/baz'
-, title: 'Baz'
-}); -%>
-
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/messed.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/messed.ejs
deleted file mode 100644
index 7d690331..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/messed.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<ul><%users.forEach(function(user){%><li><%=user.name%></li><%})%></ul> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/messed.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/messed.html
deleted file mode 100644
index 52d35629..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/messed.html
+++ /dev/null
@@ -1 +0,0 @@
-<ul><li>geddy</li><li>neil</li><li>alex</li></ul>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/newlines.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/newlines.ejs
deleted file mode 100644
index 47401b26..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/newlines.ejs
+++ /dev/null
@@ -1,5 +0,0 @@
-<ul>
- <% users.forEach(function(user){ %>
- <li><%= user.name %></li>
- <% }) %>
-</ul> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/newlines.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/newlines.html
deleted file mode 100644
index 4557edb6..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/newlines.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<ul>
-
- <li>geddy</li>
-
- <li>neil</li>
-
- <li>alex</li>
-
-</ul>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/newlines.mixed.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/newlines.mixed.ejs
deleted file mode 100644
index bdf21333..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/newlines.mixed.ejs
+++ /dev/null
@@ -1,6 +0,0 @@
-<ul>
- <% var unused1 = 'blah' -%>
- <% var unused2 = 'bleh' %>
- <% var unused3 = 'bloh' -%>
- <% var unused4 = 'bluh' %>
-</ul> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/newlines.mixed.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/newlines.mixed.html
deleted file mode 100644
index 6d8a2f58..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/newlines.mixed.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<ul>
-
-
-</ul> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.newlines.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.newlines.ejs
deleted file mode 100644
index 029b4618..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.newlines.ejs
+++ /dev/null
@@ -1,5 +0,0 @@
-<ul>
- <% users.forEach(function(user){ -%>
- <li><%= user.name %></li>
- <% }) -%>
-</ul> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.newlines.error.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.newlines.error.ejs
deleted file mode 100644
index 5749686b..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.newlines.error.ejs
+++ /dev/null
@@ -1,5 +0,0 @@
-AAA
-<% data = "test"; -%>
-BBB
-<%= qdata %>
-CCC \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.newlines.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.newlines.html
deleted file mode 100644
index 22857002..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.newlines.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<ul>
- <li>geddy</li>
- <li>neil</li>
- <li>alex</li>
- </ul>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.semicolons.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.semicolons.ejs
deleted file mode 100644
index d5831347..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.semicolons.ejs
+++ /dev/null
@@ -1,8 +0,0 @@
-This document does not use semicolons in scriptlets.
-<%
- var a = 'b'
- var b = 'c'
- var c
- c = b
-%>
-The value of c is: <%= c %>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.semicolons.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.semicolons.html
deleted file mode 100644
index 25392983..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/no.semicolons.html
+++ /dev/null
@@ -1,3 +0,0 @@
-This document does not use semicolons in scriptlets.
-
-The value of c is: c \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/para.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/para.ejs
deleted file mode 100644
index 89da779f..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/para.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<p>hey</p> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/pet.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/pet.ejs
deleted file mode 100644
index 09dd230b..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/pet.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<li><@= pet.name @></li>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/single-quote.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/single-quote.ejs
deleted file mode 100644
index 1e35a95b..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/single-quote.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<p><%= 'loki' %>'s wheelchair</p> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/single-quote.html b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/single-quote.html
deleted file mode 100644
index 3125173d..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/single-quote.html
+++ /dev/null
@@ -1 +0,0 @@
-<p>loki's wheelchair</p> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/style.css b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/style.css
deleted file mode 100644
index f9c16e68..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/style.css
+++ /dev/null
@@ -1,3 +0,0 @@
-body {
- foo: '<%= value %>';
-}
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/user-no-with.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/user-no-with.ejs
deleted file mode 100644
index 1822e24a..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/user-no-with.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<h1><$= locals.name $></h1>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/user.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/user.ejs
deleted file mode 100644
index 66f9adcb..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/fixtures/user.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<h1><$= name $></h1>
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/mocha.opts b/dgbuilder/dgeflows/node_modules/ejs/test/mocha.opts
deleted file mode 100644
index 68d4dd74..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/mocha.opts
+++ /dev/null
@@ -1,2 +0,0 @@
---ui tdd
---reporter spec
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/tmp/include.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/tmp/include.ejs
deleted file mode 100644
index 595b6c05..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/tmp/include.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<p>New</p> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/tmp/include_preprocessor.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/tmp/include_preprocessor.ejs
deleted file mode 100644
index 595b6c05..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/tmp/include_preprocessor.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<p>New</p> \ No newline at end of file
diff --git a/dgbuilder/dgeflows/node_modules/ejs/test/tmp/renderFile.ejs b/dgbuilder/dgeflows/node_modules/ejs/test/tmp/renderFile.ejs
deleted file mode 100644
index 595b6c05..00000000
--- a/dgbuilder/dgeflows/node_modules/ejs/test/tmp/renderFile.ejs
+++ /dev/null
@@ -1 +0,0 @@
-<p>New</p> \ No newline at end of file