Bump code coverage

This commit is contained in:
kpdecker
2014-12-26 11:12:47 -06:00
parent 396795c983
commit 8babe05953
6 changed files with 8 additions and 9 deletions
+2
View File
@@ -31,8 +31,10 @@ Handlebars = create();
Handlebars.create = create;
/*jshint -W040 */
/* istanbul ignore next */
var root = typeof global !== 'undefined' ? global : window,
$Handlebars = root.Handlebars;
/* istanbul ignore next */
Handlebars.noConflict = function() {
if (root.Handlebars === Handlebars) {
root.Handlebars = $Handlebars;
+2
View File
@@ -30,8 +30,10 @@ var Handlebars = create();
Handlebars.create = create;
/*jshint -W040 */
/* istanbul ignore next */
var root = typeof global !== 'undefined' ? global : window,
$Handlebars = root.Handlebars;
/* istanbul ignore next */
Handlebars.noConflict = function() {
if (root.Handlebars === Handlebars) {
root.Handlebars = $Handlebars;
+2 -2
View File
@@ -94,7 +94,7 @@ export function prepareBlock(openBlock, program, inverseAndProgram, close, inver
if (inverseAndProgram) {
if (inverseAndProgram.chain) {
inverseAndProgram.program.body[0].closeStrip = close.strip || close.openStrip;
inverseAndProgram.program.body[0].closeStrip = close.strip;
}
inverseStrip = inverseAndProgram.strip;
@@ -109,6 +109,6 @@ export function prepareBlock(openBlock, program, inverseAndProgram, close, inver
return new this.BlockStatement(
openBlock.sexpr, program, inverse,
openBlock.strip, inverseStrip, close && (close.strip || close.openStrip),
openBlock.strip, inverseStrip, close && close.strip,
this.locInfo(locInfo));
}
@@ -127,6 +127,7 @@ WhitespaceControl.prototype.MustacheStatement = function(mustache) {
WhitespaceControl.prototype.PartialStatement =
WhitespaceControl.prototype.CommentStatement = function(node) {
/* istanbul ignore next */
var strip = node.strip || {};
return {
inlineStandalone: true,
+1 -2
View File
@@ -98,8 +98,7 @@ describe('builtin helpers', function() {
var expected2 = "2. GOODBYE! <b>#1</b>. goodbye! cruel world!";
equals(actual === expected1 || actual === expected2, true, "each with object argument iterates over the contents when not empty");
shouldCompileTo(string, {goodbyes: [], world: "world"}, "cruel world!",
"each with object argument ignores the contents when empty");
shouldCompileTo(string, {goodbyes: {}, world: 'world'}, 'cruel world!');
});
it("each with @index", function() {
-5
View File
@@ -5,11 +5,6 @@ describe('Visitor', function() {
return;
}
function ast_for(template) {
var ast = Handlebars.parse(template);
return Handlebars.print(ast);
}
it('should provide coverage', function() {
// Simply run the thing and make sure it does not fail and that all of the
// stub methods are executed