Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add min file.

  • Loading branch information...
commit 89464d4115b695f607980c43ff9cfe243d007dc4 1 parent 678c737
@ryanve authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  aok.min.js
View
3  aok.min.js
@@ -0,0 +1,3 @@
+/*! aok 0.6.2 | test suite api by @ryanve | @link github.com/ryanve/aok | @license MIT */
+(function(d,b,c){"undefined"!=typeof module&&module.exports?module.exports=c():d[b]=c()})(this,"aok",function(){function d(a){var b;if(null!=a){for(b in a)this[b]=a[b];this.run()}}function b(a){return new d(a)}var c=window,f=document,e=c.console,g=c.alert;b.prototype=d.prototype;b.prototype.pass="Pass";b.prototype.fail="Fail";b.prototype.run=function(){if(!(this instanceof b))throw new TypeError;"function"==typeof this.test&&(this.test=this.test());this.test=!!this.test;this.handler&&this.handler()};
+b.prototype.handler=function(){var a=this[this.test?"pass":"fail"];"string"==typeof a?b.log("#"+this.id+": "+a):"function"==typeof a&&a.call(this)};b.id=function(a){return f.getElementById(a)};c=function(a,c){b[a]=b.prototype[a]=e&&"function"==typeof e[a]?function(){e[a].apply(e,arguments)}:c?function(){g(a+": "+[].join.call(arguments," "))}:function(){}};c("log");c("trace");c("info",1);c("warn",1);c("error",1);c("trace",1);return b});
Please sign in to comment.
Something went wrong with that request. Please try again.