Asserter undefined()

undefined() behavior

Does not contains assertions from the assertions containers.

var assertions = rawAssertions.call(this, undefined);
      for(var method in assertions){
        // if is the native (inherited) method Object.hasOwnProperty
        if(method == 'hasOwnProperty'
          && test.undefined(undefined)[method] === Object.hasOwnProperty)
          continue;
        test.value(test.undefined(undefined)[method]).isUndefined();
      }
      // ensures the test method
      test.exception(function(){
        test.value(test.undefined(undefined)['hasOwnProperty']).isUndefined();
      });

Assert that the tested value is undefined.

test
        .undefined(undefined)
        .undefined()
        .case('Test failure', function(){
          test
            .exception(function(){
              test.undefined(0);
            })
            .exception(function(){
              test.undefined(1);
            })
            .exception(function(){
              test.undefined('undefined');
            })
            .exception(function(){
              test.undefined(null);
            })
            .exception(function(){
              test.undefined(false);
            })
            .exception(function(){
              test.undefined(true);
            })
            .exception(function(){
              test.undefined('');
            })
            .exception(function(){
              test.undefined([]);
            })
            .exception(function(){
              test.undefined({});
            })
            .exception(function(){
              test.undefined(function(){});
            })
          ;
        })
      ;