SOURCE CODE: Uize.Test.Uize.Templates.Calculator

VIEW REFERENCE

/*______________
|       ______  |   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.Calculator Class
|   /    / /    |
|  /    / /  /| |    ONLINE : http://uize.com
| /____/ /__/_| | COPYRIGHT : (c)2010-2014 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.Calculator= module defines basic unit tests for the =Uize.Templates.Calculator= JavaScript template module.

    *DEVELOPERS:* `Chris van Rensburg`
*/

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

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