SOURCE CODE: Uize.Test.Uize.Templates.List (view docs)

/*______________
|       ______  |   U I Z E    J A V A S C R I P T    F R A M E W O R K
|     /      /  |   ---------------------------------------------------
|    /    O /   |    MODULE : Uize.Test.Uize.Templates.List Class
|   /    / /    |
|  /    / /  /| |    ONLINE : http://uize.com
| /____/ /__/_| | COPYRIGHT : (c)2010-2016 UIZE
|          /___ |   LICENSE : Available under MIT License or GNU General Public License
|_______________|             http://uize.com/license.html
*/

/* Module Meta Data
  type: Test
  importance: 1
  codeCompleteness: 100
  docCompleteness: 100
*/

/*?
  Introduction
    The =Uize.Test.Uize.Templates.List= module defines basic unit tests for the =Uize.Templates.List= JavaScript template module.

    *DEVELOPERS:* `Chris van Rensburg`
*/

Uize.module ({
  name:'Uize.Test.Uize.Templates.List',
  builder:function () {
    'use strict';

    return Uize.Test.resolve ({
      title:'Test for Uize.Templates.List JavaScript Template',
      test:[
        Uize.Test.requiredModulesTest ('Uize.Templates.List'),
        {
          title:'Calling the process static method produces a non-empty string',
          test:function () {
            return this.expectNonEmptyString (
              Uize.Templates.List.process ({
                indentChars:'   ',
                items:[{
                  title:'Item Title',
                  description:'This is an item',
                  link:'http://uize.com',
                  expanded:true
                }]
              })
            );
          }
        }
      ]
    });
  }
});