<commit_before>require('mocha');
require('should');
var fs = require('fs');
var path = require('path');
var assert = require('assert');
var support = require('./support');
var App = support.resolve();
var List = App.List;
var app;

describe('list', function() {
  describe('method', function() {
    beforeEach(function() {
      app = new App();
    });

    it('should expose the list method', function() {
      assert(typeof app.list === 'function');
    });

    it('should return a new list', function() {
      var list = app.list();
      assert(typeof list === 'object');
    });

    it('should have isList property', function() {
      var list = app.list();
      assert(list.isList === true);
    });
  });

  describe('adding items', function() {
    beforeEach(function() {
      app = new App();
      app.engine('tmpl', require('engine-base'));
      app.create('pages');
    });

    it('should add an item to a list:', function() {
      app.pages('test/fixtures/pages/a.hbs');
      var list = app.list();
      list.addItem(app.pages.getView('test/fixtures/pages/a.hbs'));
      assert(list.hasItem(path.resolve('test/fixtures/pages/a.hbs')));
    });

    it('should expose the `option` method from a list:', function() {
      var list = app.list();
      list.option('a', 'b');
      assert(list.options);
      assert(list.options.a === 'b');
    });<commit_msg>remove outdated unit test<commit_after>require('mocha');
require('should');
var fs = require('fs');
var path = require('path');
var assert = require('assert');
var support = require('./support');
var App = support.resolve();
var List = App.List;
var app;

describe('list', function() {
  describe('method', function() {
    beforeEach(function() {
      app = new App();
    });

    it('should expose the list method', function() {
      assert(typeof app.list === 'function');
    });

    it('should return a new list', function() {
      var list = app.list();
      assert(typeof list === 'object');
    });

    it('should have isList property', function() {
      var list = app.list();
      assert(list.isList === true);
    });
  });

  describe('adding items', function() {
    beforeEach(function() {
      app = new App();
      app.engine('tmpl', require('engine-base'));
      app.create('pages');
    });

    it('should expose the `option` method from a list:', function() {
      var list = app.list();
      list.option('a', 'b');
      assert(list.options);
      assert(list.options.a === 'b');
    });
{'fraction_non_alphanumeric': 0.1948207171314741, 'fraction_numerical': 0.0, 'mean_word_length': 3.0696920583468397, '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': '4692456', 'n_tokens_mistral': 762, 'n_tokens_neox': 745, 'n_words': 193}