Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding project files, so there's something for the user to test

  • Loading branch information...
commit 46b06ff79e5e579e851297b8827acf1b223ea0e1 1 parent 40d6193
@mroderick authored
View
8 project/src/try-buster.js
@@ -0,0 +1,8 @@
+/*jslint evil:false, sloppy:true, undef:true, white:true, plusplus:true */
+/*global buster, assert, TryBuster */
+
+var TryBuster = {
+ sayHello : function(){
+ return 'hello world!';
+ }
+};
View
13 project/test/buster.js
@@ -0,0 +1,13 @@
+/*jslint evil:false, sloppy:false, undef:true, white:true, plusplus:true, node:true */
+
+var config = module.exports;
+
+config["Try BusterJS tests"] = {
+ env: "browser",
+ sources: [
+ "../src/try-buster.js"
+ ],
+ tests: [
+ "*-test.js"
+ ]
+};
View
12 project/test/try-buster-test.js
@@ -0,0 +1,12 @@
+/*jslint evil:false, sloppy:true, undef:true, white:true, plusplus:true */
+/*global buster, assert, TryBuster */
+
+buster.testCase("TryBuster", {
+ "has a function named 'sayHello'": function () {
+ assert( TryBuster.hasOwnProperty('sayHello') && typeof TryBuster.sayHello === 'function' );
+ },
+
+ "sayHello returns 'hello world!'": function () {
+ assert.equals( TryBuster.sayHello(), 'hello world!' );
+ }
+});
Please sign in to comment.
Something went wrong with that request. Please try again.