Skip to content

Commit

Permalink
test: update to new include syntax (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Nov 27, 2019
1 parent 40dd2ce commit 2f17874
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const should = require('chai').should(); // eslint-disable-line
require('chai').should();
const fs = require('hexo-fs');
const pathFn = require('path');

Expand All @@ -24,15 +24,15 @@ describe('EJS renderer', () => {
});

it('include', () => {
const body = '<% include test %>';
const body = '<%- include(\'test\') %>';
const path = pathFn.join(__dirname, 'include_test', 'index.ejs');
const includePath = pathFn.join(path, '../test.ejs');
const includeBody = 'include body';

return fs.writeFile(includePath, includeBody).then(() => {
const result = r({
text: body,
path: path
path
});

result.should.eql(includeBody);
Expand Down

0 comments on commit 2f17874

Please sign in to comment.