SOURCE CODE: Uize.Test.Uize.Templates.Collection (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.Collection 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.Collection= module defines basic unit tests for the =Uize.Templates.Collection= JavaScript template module.

    *DEVELOPERS:* `Chris van Rensburg`
*/

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

    return Uize.Test.resolve ({
      title:'Test for Uize.Templates.Collection JavaScript Template',
      test:[
        Uize.Test.requiredModulesTest ('Uize.Templates.Collection'),
        {
          title:'Calling the process static method produces a non-empty string',
          test:function () {
            return this.expectNonEmptyString (Uize.Templates.Collection.process ({idPrefix:'page_widget'}));
          }
        }
      ]
    });
  }
});