[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:
23
platform/framework/src/Temporary.js
Normal file
23
platform/framework/src/Temporary.js
Normal 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;
|
||||
}
|
||||
);
|
||||
17
platform/framework/test/TemporarySpec.js
Normal file
17
platform/framework/test/TemporarySpec.js
Normal 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");
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
);
|
||||
3
platform/framework/test/suite.json
Normal file
3
platform/framework/test/suite.json
Normal file
@@ -0,0 +1,3 @@
|
||||
[
|
||||
"Temporary"
|
||||
]
|
||||
Reference in New Issue
Block a user