| Index: sky/tests/modules/modules.sky
|
| diff --git a/sky/tests/modules/modules.sky b/sky/tests/modules/modules.sky
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1e7bf94a46a58d0d05331de840d18091b1e8b2a0
|
| --- /dev/null
|
| +++ b/sky/tests/modules/modules.sky
|
| @@ -0,0 +1,18 @@
|
| +<html>
|
| +<import src="../resources/chai.sky" />
|
| +<import src="../resources/mocha.sky" />
|
| +<script>
|
| +describe('Module', function() {
|
| + it('should be constructable', function() {
|
| + var doc1 = new Document();
|
| + var app = new Application(doc1, "http://www.example.com/app");
|
| +
|
| + var doc2 = new Document();
|
| + var module = new Module(app, doc2, "http://www.example.com/module");
|
| + assert.equal(module.application, app);
|
| + assert.equal(module.document, doc2);
|
| + assert.equal(module.url, "http://www.example.com/module");
|
| + });
|
| +});
|
| +</script>
|
| +</html>
|
|
|