From f2f8d74d220996463441b4c356670536c0d08158 Mon Sep 17 00:00:00 2001 From: Dominic Chambers Date: Tue, 19 Aug 2014 17:41:56 +0100 Subject: [PATCH] Added failing test that should work (it works within the template) and which otherwise explains how the class information is available for use within module documentation pages. --- test/specs/documentation/moduleisconstructor.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/specs/documentation/moduleisconstructor.js b/test/specs/documentation/moduleisconstructor.js index 65c14e84..16c595f9 100644 --- a/test/specs/documentation/moduleisconstructor.js +++ b/test/specs/documentation/moduleisconstructor.js @@ -33,5 +33,11 @@ describe('module that exports a constructor', function() { it('should include a "description" property that contains the module description', function() { expect(modules[0].description).toEqual('Describe the module here.'); }); + + // TODO: this is the missing piece of information -- the module property is not available when testing, but is available within the template + xit('should be able to access the class information via the module', function() { + expect(modules[0].module.description).toEqual('Create a new configuration.'); + expect(modules[0].module.classdesc).toEqual('Describe the class here.'); + }); }); }); \ No newline at end of file