[Tests] Initial spec runner

Initial spec runner; looks in bundles, assumes conventions.
Supports initial repository set up and build scripts, for
WTD-519.
This commit is contained in:
Victor Woeltjen
2014-10-30 17:24:30 -07:00
parent a753818b24
commit 0bf0912bf8
6 changed files with 178 additions and 193 deletions

View File

@@ -0,0 +1,23 @@
/**
* Created by vwoeltje on 10/30/14.
*/
/*global define*/
define(
[],
function () {
"use strict";
function Temporary() {
return {
someMethod: function () {
return "returnValue";
}
};
}
return Temporary;
}
);

View File

@@ -0,0 +1,17 @@
/*global define,describe,it,expect*/
define(
["../src/Temporary"],
function (Temporary) {
"use strict";
describe("Temporary class", function () {
var temporary = new Temporary();
it("has a method with a return value", function () {
expect(temporary.someMethod()).toEqual("returnValue");
});
});
}
);

View File

@@ -0,0 +1,3 @@
[
"Temporary"
]