Skip to content

Commit

Permalink
ic:renaming the test
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Jan 5, 2017
1 parent b74011b commit bfd9ce5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/cms/templates/templates.js → test/cms/templates/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,17 @@ describe('cmsTemplates', function() {
cmsData.regex.escapeTextToRegex.restore()
});

it('cmsTemplates.template.includePartials()', function() {
// stub
var sinonInstance = sinon.sandbox.create();
var stubReadFileSync = sinonInstance.stub(fse, 'readFileSync');
stubReadFileSync.returns("test")

var template = cmsTemplates.template.includePartials("{{test}}", {"test" : "ok.html"})
console.log(template)
chai.expect(template).to.be.equal("test")
});

/**
* cmsTemplates.template.getTemplate
*
Expand Down

0 comments on commit bfd9ce5

Please sign in to comment.