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