Code coverage report for jade\lib\nodes\case.js

Statements: 100% (14 / 14)      Branches: 100% (0 / 0)      Functions: 100% (2 / 2)      Lines: 100% (14 / 14)      Ignored: none     

All files » jade\lib\nodes\ » case.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34    1                 1 13 13       1 1   1   1 36 36 36       1 1   1  
'use strict';
 
var Node = require('./node');
 
/**
 * Initialize a new `Case` with `expr`.
 *
 * @param {String} expr
 * @api public
 */
 
var Case = exports = module.exports = function Case(expr, block){
  this.expr = expr;
  this.block = block;
};
 
// Inherit from `Node`.
Case.prototype = Object.create(Node.prototype);
Case.prototype.constructor = Case;
 
Case.prototype.type = 'Case';
 
var When = exports.When = function When(expr, block){
  this.expr = expr;
  this.block = block;
  this.debug = false;
};
 
// Inherit from `Node`.
When.prototype = Object.create(Node.prototype);
When.prototype.constructor = When;
 
When.prototype.type = 'When';