Permalink
Browse files

Adding tests for exposure of pavlov.api

  • Loading branch information...
1 parent 6b36977 commit 3062ab2aa685721fd2424112f5d4e2588031f2d5 @mmonteleone committed Feb 11, 2012
Showing with 33 additions and 0 deletions.
  1. +33 −0 spec/pavlov.specs.js
View
@@ -1101,6 +1101,39 @@ pavlov.specify("Pavlov", function() {
});
});
});
+
+ describe("api", function(){
+ it("should expose 'describe'", function(){
+ assert(pavlov.api.describe).isSameAs(describe);
+ });
+ it("should expose 'before'", function(){
+ assert(pavlov.api.before).isSameAs(before);
+ });
+ it("should expose 'after'", function(){
+ assert(pavlov.api.after).isSameAs(after);
+ });
+ it("should expose 'it'", function(){
+ assert(pavlov.api.it).isSameAs(it);
+ });
+ it("should expose 'async'", function(){
+ assert(pavlov.api.async).isSameAs(async);
+ });
+ it("should expose 'given'", function(){
+ assert(pavlov.api.given).isSameAs(given);
+ });
+ it("should expose 'assert'", function(){
+ assert(pavlov.api.assert).isSameAs(assert);
+ });
+ it("should expose 'wait'", function(){
+ assert(pavlov.api.wait).isSameAs(wait);
+ });
+ it("should expose 'pause'", function(){
+ assert(pavlov.api.pause).isSameAs(pause);
+ });
+ it("should expose 'resume'", function(){
+ assert(pavlov.api.resume).isSameAs(resume);
+ });
+ });
});
module("Second Standard QUnit module");

0 comments on commit 3062ab2

Please sign in to comment.