diff options
author | Alexander Early <alexander.early@gmail.com> | 2016-01-21 14:39:04 -0800 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2016-01-21 14:39:04 -0800 |
commit | a191cb4a07a271dd735b5de5438724dc5557e86b (patch) | |
tree | 8f47c4ee01dfe8c5f9f80e0a9d52c3b080e9f300 /support/build.test.js | |
parent | d8bdb7a0d38b9b444d63ee7cd139dafb0b1486e2 (diff) | |
download | async-a191cb4a07a271dd735b5de5438724dc5557e86b.tar.gz |
clean up makefile, add smoke test to build process
Diffstat (limited to 'support/build.test.js')
-rw-r--r-- | support/build.test.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/support/build.test.js b/support/build.test.js index 7cf1908..2342027 100644 --- a/support/build.test.js +++ b/support/build.test.js @@ -16,6 +16,34 @@ describe("async main", function() { }); }); +describe("async umd", function() { + var async; + + before(function() { + async = require("../build/async.js"); + }); + + it("should have methods", function() { + methods.forEach(function(methodName) { + expect(async[methodName]).to.be.a("function"); + }); + }); +}); + +describe("async umd minified", function() { + var async; + + before(function() { + async = require("../build/async.min.js"); + }); + + it("should have methods", function() { + methods.forEach(function(methodName) { + expect(async[methodName]).to.be.a("function"); + }); + }); +}); + methods.forEach(function (methodName) { describe("async." + methodName, function () { var method; |