Skip to content
Myr

Added more partial view path tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 1c80a25 · Browse files · 2 files+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−1 removed

  • tests:+3 added−0 removed
  • other:+2 added−1 removed

2 files+5 added−1 removed

modified:lib/express/view/partial.js+2 added-1 removed
modified:test/view.test.js+3 added
114 unmodified lines
115 view.path.should.equal(fixtures + '/forum/_thread.jade');116117 var view = new Partial('forum/thread.jade', { root: fixtures });118 view.path.should.equal(fixtures + '/forum/_thread.jade');119120 var view = new Partial('thread', { parentView: view });121 view.path.should.equal(fixtures + '/forum/_thread.jade');122 },123124 'test #render()': function(){125 var app = create();
645 unmodified lines