diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-05-06 10:36:55 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-05-06 10:36:55 +0200 |
commit | 11a0a64d9e6bc357d85efe9d83183a214aa7f1dc (patch) | |
tree | 89120ab5b00b94c2aba9d2501810ab9ae2427847 /lib/output/__tests__ | |
parent | b6051babac5cc384ff14971a3702257a3323ed77 (diff) | |
download | gitbook-11a0a64d9e6bc357d85efe9d83183a214aa7f1dc.zip gitbook-11a0a64d9e6bc357d85efe9d83183a214aa7f1dc.tar.gz gitbook-11a0a64d9e6bc357d85efe9d83183a214aa7f1dc.tar.bz2 |
Add failing test for #1272
Diffstat (limited to 'lib/output/__tests__')
-rw-r--r-- | lib/output/__tests__/website.js | 15 |
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' |