summaryrefslogtreecommitdiffstats
path: root/lib/output
diff options
context:
space:
mode:
Diffstat (limited to 'lib/output')
-rw-r--r--lib/output/__tests__/website.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/output/__tests__/website.js b/lib/output/__tests__/website.js
index f9fcdae..d9fe123 100644
--- a/lib/output/__tests__/website.js
+++ b/lib/output/__tests__/website.js
@@ -12,6 +12,21 @@ describe('WebsiteGenerator', function() {
});
});
+ pit('should copy asset files', function() {
+ return generateMock(WebsiteGenerator, {
+ 'README.md': 'Hello World',
+ 'myJsFile.js': 'var a = "test";',
+ 'folder': {
+ 'AnotherAssetFile.md': '# Even md'
+ }
+ })
+ .then(function(folder) {
+ expect(folder).toHaveFile('index.html');
+ expect(folder).toHaveFile('myJsFile.js');
+ expect(folder).toHaveFile('folder/AnotherAssetFile.md');
+ });
+ });
+
pit('should generate an index.html for AsciiDoc', function() {
return generateMock(WebsiteGenerator, {
'README.adoc': 'Hello World'