<commit_before><commit_msg>Add test for ifOr helper<commit_after>'use strict';

var ifOr = require('../').ifOr;
var tape = require('tape');
var Handlebars = require('handlebars');

Handlebars.registerHelper(ifOr.name, ifOr);

tape('ifOr', function (test) {
  var template = Handlebars.compile('{{#ifOr val1 val2}}pass{{/ifOr}}');
  var expected = 'pass';
  var actual = template({
    val1: false,
    val2: true
  });
  test.plan(1);
  test.equal(actual, expected, 'Works');
});
{'fraction_non_alphanumeric': 0.18580375782881003, 'fraction_numerical': 0.010438413361169102, 'mean_word_length': 4.925925925925926, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6391890', 'n_tokens_mistral': 166, 'n_tokens_neox': 164, 'n_words': 39}