Skip to content

Commit

Permalink
test(includer): rename first param (url -> original)
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed May 16, 2020
1 parent 1fb829a commit 8da7213
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/ejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1001,8 +1001,8 @@ suite('include()', function () {

test('include ejs with custom includer function', function () {
var file = 'test/fixtures/include-root.ejs';
var inc = function (url, prev) {
if (url.charAt(0) === '/') {
var inc = function (original, prev) {
if (original.charAt(0) === '/') {
return {
filename: path.join(__dirname, 'fixtures', prev)
};
Expand All @@ -1016,8 +1016,8 @@ suite('include()', function () {

test('include ejs with includer returning template', function () {
var file = 'test/fixtures/include-root.ejs';
var inc = function (url, prev) {
if (prev === '/include.ejs') {
var inc = function (original, prev) {
if (original === '/include.ejs') {
return {
template: '<p>Hello template!</p>\n'
};
Expand Down

0 comments on commit 8da7213

Please sign in to comment.