Skip to content

Commit

Permalink
Couple tests, include sinon
Browse files Browse the repository at this point in the history
  • Loading branch information
mduvall committed Sep 2, 2013
1 parent fd60a6e commit 621edc3
Show file tree
Hide file tree
Showing 3 changed files with 4,303 additions and 6 deletions.
5 changes: 1 addition & 4 deletions test/grande.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@
</div>
</div>
<script src="../node_modules/qunitjs/qunit/qunit.js"></script>

<-- Library file -->
<script src="lib/sinon.js"></script>
<script src="../js/grande.js"></script>

<-- Test file -->
<script src="grande.js"></script>
</body>
</html>
14 changes: 12 additions & 2 deletions test/grande.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
module("initialization", {});
module("grande initialization");

test("should be available at the global scope", function() {
test("it should be available at the global scope", function() {
ok(typeof window.grande === "object", "grande should be available at the window");
});

module("public API");

test("it should provide bind as a method", function() {
ok(typeof window.grande.bind === "function", "bind should be a public API method");
});

test("it should provide select as a method", function() {
ok(typeof window.grande.select === "function", "select should be a public API method");
});
Loading

0 comments on commit 621edc3

Please sign in to comment.