Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
feat: Add disabled test for twig render error
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Jan 26, 2020
1 parent a2f90cb commit e5c6ee2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/CHANGELOG_error.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ errorhere() }}
22 changes: 22 additions & 0 deletions test/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,27 @@ module.exports = function() {
}
);
});
/*test('test command custom template with error in template file', function(done) {
const templateFile = __dirname + '/../src/CHANGELOG_error.twig';
exec(
pathBin +
' --owner testowner --repo test/repo --repoDir ' +
__dirname +
' --template ' +
templateFile +
' --baseCommit ' +
'HEAD' +
'/../CHANGELOG.twig',
(err, stdout, stderr) => {
if (err) {
done(err);
} else {
expect(stderr).to.contain('TwigException: errorhere function does not exist and is not defined in the context');
expect(stdout).to.equal('');
done();
}
}
);
});*/
});
};

0 comments on commit e5c6ee2

Please sign in to comment.