Skip to content

Commit

Permalink
fix(templates): bug with old template engines getting passed root rat…
Browse files Browse the repository at this point in the history
…her than socketstream api
  • Loading branch information
thepian committed Apr 27, 2015
1 parent 9715757 commit 19510e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/client/template_engine.js
Expand Up @@ -92,7 +92,7 @@ module.exports = function(ss,options) {
if (typeof mod === 'function') {
engine = mod(ss, config, options);
} else {
engine = mod.init(ss.root, config, options);
engine = mod.init(ss, config, options);
}
return mods.push({
engine: engine,
Expand Down
4 changes: 2 additions & 2 deletions test/unit/client/template_engine.test.js
Expand Up @@ -53,8 +53,8 @@ describe('Template engine', function() {
describe('custom use', function() {

var oldEngine = {
init: function(root, config) {
root.should.equal(ss.root);
init: function(api, config) {
api.should.equal(ss.api);
return {
name: 'Old',
selectFormatter: function() {
Expand Down

1 comment on commit 19510e3

@arxpoetica
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.