summaryrefslogtreecommitdiffstats
path: root/test/fixtures
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-03-24 23:14:17 +0100
committerSamy Pessé <samypesse@gmail.com>2015-03-24 23:14:17 +0100
commitc9af209a9335ea1219c3149eb12c2daa271c9403 (patch)
tree72df3edf7a67db465ce2dacbbf204974253b818a /test/fixtures
parent63ee94ff89d10e56d82079183c494f8129b92eae (diff)
parent48ab44a776b665b1d3627192cf82e9220ec74678 (diff)
downloadgitbook-c9af209a9335ea1219c3149eb12c2daa271c9403.zip
gitbook-c9af209a9335ea1219c3149eb12c2daa271c9403.tar.gz
gitbook-c9af209a9335ea1219c3149eb12c2daa271c9403.tar.bz2
Merge pull request #667 from GitbookIO/better-testing
Better Unit Tests
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/test0/GLOSSARY.md6
-rw-r--r--test/fixtures/test0/README.md3
-rw-r--r--test/fixtures/test0/SUMMARY.md1
-rw-r--r--test/fixtures/test0/book.json3
-rw-r--r--test/fixtures/test0/styles/website.css3
-rw-r--r--test/fixtures/test1/GLOSSARY.md9
-rw-r--r--test/fixtures/test1/README.md4
-rw-r--r--test/fixtures/test1/SUMMARY.md6
-rw-r--r--test/fixtures/test1/book.json5
-rw-r--r--test/fixtures/test1/intro.md4
-rw-r--r--test/fixtures/test1/sub/test1.md8
-rw-r--r--test/fixtures/test2/LANGS.md4
-rw-r--r--test/fixtures/test2/README.md2
-rw-r--r--test/fixtures/test2/en/README.md1
-rw-r--r--test/fixtures/test2/en/SUMMARY.md1
-rw-r--r--test/fixtures/test2/fr/README.md1
-rw-r--r--test/fixtures/test2/fr/SUMMARY.md1
-rw-r--r--test/fixtures/test3/README.adoc4
-rw-r--r--test/fixtures/test3/SUMMARY.adoc5
-rw-r--r--test/fixtures/test3/test.adoc0
-rw-r--r--test/fixtures/test3/test1.adoc0
-rw-r--r--test/fixtures/test3/test2.adoc0
-rw-r--r--test/fixtures/test4/README.md11
-rw-r--r--test/fixtures/test4/SUMMARY.md3
-rw-r--r--test/fixtures/test4/book.js3
-rw-r--r--test/fixtures/test4/sub/PAGE.md18
-rw-r--r--test/fixtures/test4/test.svg11
-rw-r--r--test/fixtures/test5/README.md5
-rw-r--r--test/fixtures/test5/SUMMARY.md1
-rw-r--r--test/fixtures/test5/test.md1
30 files changed, 0 insertions, 124 deletions
diff --git a/test/fixtures/test0/GLOSSARY.md b/test/fixtures/test0/GLOSSARY.md
deleted file mode 100644
index ad07f86..0000000
--- a/test/fixtures/test0/GLOSSARY.md
+++ /dev/null
@@ -1,6 +0,0 @@
-# Glossary
-
-## Description
-
-This is the dexcription of a description.
-
diff --git a/test/fixtures/test0/README.md b/test/fixtures/test0/README.md
deleted file mode 100644
index a2fdfea..0000000
--- a/test/fixtures/test0/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# Other Title
-
-This is a description, it's simple, no ?
diff --git a/test/fixtures/test0/SUMMARY.md b/test/fixtures/test0/SUMMARY.md
deleted file mode 100644
index 27870e5..0000000
--- a/test/fixtures/test0/SUMMARY.md
+++ /dev/null
@@ -1 +0,0 @@
-# Summary \ No newline at end of file
diff --git a/test/fixtures/test0/book.json b/test/fixtures/test0/book.json
deleted file mode 100644
index 41faa63..0000000
--- a/test/fixtures/test0/book.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "title": "Test"
-} \ No newline at end of file
diff --git a/test/fixtures/test0/styles/website.css b/test/fixtures/test0/styles/website.css
deleted file mode 100644
index 5c5e887..0000000
--- a/test/fixtures/test0/styles/website.css
+++ /dev/null
@@ -1,3 +0,0 @@
-body {
- background: red;
-}
diff --git a/test/fixtures/test1/GLOSSARY.md b/test/fixtures/test1/GLOSSARY.md
deleted file mode 100644
index dc14550..0000000
--- a/test/fixtures/test1/GLOSSARY.md
+++ /dev/null
@@ -1,9 +0,0 @@
-
-# Test
-
-a test text
-
-# Test 2
-
-a second test
-
diff --git a/test/fixtures/test1/README.md b/test/fixtures/test1/README.md
deleted file mode 100644
index 2f7a8d4..0000000
--- a/test/fixtures/test1/README.md
+++ /dev/null
@@ -1,4 +0,0 @@
-# Test
-
-This file is not parsed by gitbook because the structure is defined in book.json.
-
diff --git a/test/fixtures/test1/SUMMARY.md b/test/fixtures/test1/SUMMARY.md
deleted file mode 100644
index d05fc4a..0000000
--- a/test/fixtures/test1/SUMMARY.md
+++ /dev/null
@@ -1,6 +0,0 @@
-# Summary
-
-* [Chapter 1](test.md)
- * [Article 1](sub/test1.md)
-* [Chapter 2](test2.md)
-* [Google](https://www.google.com)
diff --git a/test/fixtures/test1/book.json b/test/fixtures/test1/book.json
deleted file mode 100644
index edaa4fc..0000000
--- a/test/fixtures/test1/book.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "structure": {
- "readme": "intro.md"
- }
-} \ No newline at end of file
diff --git a/test/fixtures/test1/intro.md b/test/fixtures/test1/intro.md
deleted file mode 100644
index bf9a1cf..0000000
--- a/test/fixtures/test1/intro.md
+++ /dev/null
@@ -1,4 +0,0 @@
-# My Book
-
-Test description
-
diff --git a/test/fixtures/test1/sub/test1.md b/test/fixtures/test1/sub/test1.md
deleted file mode 100644
index d45a4dd..0000000
--- a/test/fixtures/test1/sub/test1.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# This file is used to etst links transformations:
-
-This is a relative link [test](../intro.md).
-
-![image](../image.png)
-
-This is a glossary link.
-
diff --git a/test/fixtures/test2/LANGS.md b/test/fixtures/test2/LANGS.md
deleted file mode 100644
index a501d22..0000000
--- a/test/fixtures/test2/LANGS.md
+++ /dev/null
@@ -1,4 +0,0 @@
-# Languages
-
-* [English](en/)
-* [French](fr/)
diff --git a/test/fixtures/test2/README.md b/test/fixtures/test2/README.md
deleted file mode 100644
index c6186ac..0000000
--- a/test/fixtures/test2/README.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# Multi-Languages test
-
diff --git a/test/fixtures/test2/en/README.md b/test/fixtures/test2/en/README.md
deleted file mode 100644
index 95bc71c..0000000
--- a/test/fixtures/test2/en/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# English Book
diff --git a/test/fixtures/test2/en/SUMMARY.md b/test/fixtures/test2/en/SUMMARY.md
deleted file mode 100644
index ac9323c..0000000
--- a/test/fixtures/test2/en/SUMMARY.md
+++ /dev/null
@@ -1 +0,0 @@
-# Summary
diff --git a/test/fixtures/test2/fr/README.md b/test/fixtures/test2/fr/README.md
deleted file mode 100644
index c7a4103..0000000
--- a/test/fixtures/test2/fr/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# French Book
diff --git a/test/fixtures/test2/fr/SUMMARY.md b/test/fixtures/test2/fr/SUMMARY.md
deleted file mode 100644
index ac9323c..0000000
--- a/test/fixtures/test2/fr/SUMMARY.md
+++ /dev/null
@@ -1 +0,0 @@
-# Summary
diff --git a/test/fixtures/test3/README.adoc b/test/fixtures/test3/README.adoc
deleted file mode 100644
index ea295ee..0000000
--- a/test/fixtures/test3/README.adoc
+++ /dev/null
@@ -1,4 +0,0 @@
-= My Book
-
-Test description
-
diff --git a/test/fixtures/test3/SUMMARY.adoc b/test/fixtures/test3/SUMMARY.adoc
deleted file mode 100644
index 29fcb65..0000000
--- a/test/fixtures/test3/SUMMARY.adoc
+++ /dev/null
@@ -1,5 +0,0 @@
-= Summary
-
-. link:test.adoc[Chapter 1]
-.. link:test1.adoc[Article 1]
-. link:test2.adoc[Chapter 2]
diff --git a/test/fixtures/test3/test.adoc b/test/fixtures/test3/test.adoc
deleted file mode 100644
index e69de29..0000000
--- a/test/fixtures/test3/test.adoc
+++ /dev/null
diff --git a/test/fixtures/test3/test1.adoc b/test/fixtures/test3/test1.adoc
deleted file mode 100644
index e69de29..0000000
--- a/test/fixtures/test3/test1.adoc
+++ /dev/null
diff --git a/test/fixtures/test3/test2.adoc b/test/fixtures/test3/test2.adoc
deleted file mode 100644
index e69de29..0000000
--- a/test/fixtures/test3/test2.adoc
+++ /dev/null
diff --git a/test/fixtures/test4/README.md b/test/fixtures/test4/README.md
deleted file mode 100644
index d73be69..0000000
--- a/test/fixtures/test4/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Other Title
-
-A description
-
-![test image to be converted](./test.svg)
-![test url](http://upload.wikimedia.org/wikipedia/commons/b/b0/NewTux.svg)
-![test image to be converted, second use](./test.svg)
-
-# Test with youtube videos that have the same filename:
-![youtube1](http://img.youtube.com/vi/9bZkp7q19f0/0.jpg)
-![youtube2](http://img.youtube.com/vi/IkV2HQLAKHY/0.jpg)
diff --git a/test/fixtures/test4/SUMMARY.md b/test/fixtures/test4/SUMMARY.md
deleted file mode 100644
index 3cda114..0000000
--- a/test/fixtures/test4/SUMMARY.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# Summary
-
-* [Page](sub/PAGE.md)
diff --git a/test/fixtures/test4/book.js b/test/fixtures/test4/book.js
deleted file mode 100644
index 4642b56..0000000
--- a/test/fixtures/test4/book.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = {
- title: "Test 2"
-};
diff --git a/test/fixtures/test4/sub/PAGE.md b/test/fixtures/test4/sub/PAGE.md
deleted file mode 100644
index a98a942..0000000
--- a/test/fixtures/test4/sub/PAGE.md
+++ /dev/null
@@ -1,18 +0,0 @@
-##
-
-## Image from root page
-
-![test image to be converted](../test.svg)
-![test url](http://upload.wikimedia.org/wikipedia/commons/b/b0/NewTux.svg)
-
-## Inline svg
-
-{% html %}
-<svg xmlns="http://www.w3.org/2000/svg">
- <path d="M97.008198003228,6.103238498249268A97.2,97.2 0 0,1 87.9491894996971,41.385747140125076L54.289623147961166,25.546757493904366A60,60 0 0,0 59.88160370569629,3.7674311717588074Z"></path>
-</svg>
-{% endhtml %}
-
-## Remote image
-
-![remote url](http://upload.wikimedia.org/wikipedia/commons/a/af/Tux.png)
diff --git a/test/fixtures/test4/test.svg b/test/fixtures/test4/test.svg
deleted file mode 100644
index 48bba70..0000000
--- a/test/fixtures/test4/test.svg
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
-<svg version="1.1" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
- <title id="test-title">basic SVG tiny doc</title>
- <g id="test-body-content">
- <text font-family="Arial" font-size="14" text-anchor="middle" x="225" y="25">hello world</text>
- </g>
- <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">Revision: 1.1</text>
- <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
-</svg>
-
diff --git a/test/fixtures/test5/README.md b/test/fixtures/test5/README.md
deleted file mode 100644
index 3db21b2..0000000
--- a/test/fixtures/test5/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# Test Content inclusion
-
-{% include "./test.md" %}
-Git1:{% include "git+https://gist.github.com/69ea4542e4c8967d2fa7.git/test.md" %}
-Git2:{% include "git+https://gist.github.com/69ea4542e4c8967d2fa7.git/test2.md" %} \ No newline at end of file
diff --git a/test/fixtures/test5/SUMMARY.md b/test/fixtures/test5/SUMMARY.md
deleted file mode 100644
index ac9323c..0000000
--- a/test/fixtures/test5/SUMMARY.md
+++ /dev/null
@@ -1 +0,0 @@
-# Summary
diff --git a/test/fixtures/test5/test.md b/test/fixtures/test5/test.md
deleted file mode 100644
index 5e1c309..0000000
--- a/test/fixtures/test5/test.md
+++ /dev/null
@@ -1 +0,0 @@
-Hello World \ No newline at end of file