/**
 * Created by kintesh on 28/01/15.
 */
var assert = require("assert"),
    slides = require("../lib/slides");

describe("Slides", function() {

    it("Rigorous tests", function() {
        assert.equal(true, true);
        assert.notEqual(true, false);
    });

    it("test for translate", function(done) {
        var input = "====\n# -> Welcome to slides <-\n**Slides** is a tool to *make* and *present* HTML5 slides.====",
            html = "<div class=\"slide\">\n<h1 id=\"welcome-to-slides\" style=\"text-align: center;\">Welcome to slides" +
                "</h1>\n<p><strong>Slides</strong> is a tool to <em>make</em> and <em>present</em> HTML5 slides.</p>" +
                "\n\n</div>\n",
            offline = "<!DOCTYPE html>\n<html>\n<head>\n<title>Slides</title>\n<meta charset=\"UTF-8\">\n" +
                "<link rel=\"stylesheet\" href=\"./slides_assets/css/fonts.css\">\n" +
                "<link rel=\"stylesheet\" href=\"./slides_assets/css/slides.css\">\n" +
                "<link rel=\"stylesheet\" href=\"./slides_assets/css/slides-print.css\" media=\"print\"/>\n" +
                "<link rel=\"stylesheet\" href=\"./slides_assets/css/style.css\"/>\n" +
                "<link rel=\"stylesheet\" href=\"./slides_assets/css/animations.css\"/>\n" +
                "<link rel=\"stylesheet\" href=\"./slides_assets/css/font-awesome.css\">\n" +
                "<script src=\"./slides_assets/js/jquery.js\"></script>\n" +
                "<script src=\"./slides_assets/js/slides.js\"></script>\n" +
                "<script src=\"./slides_assets/js/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML\"></script>\n" +
                "</head>\n\n<body>\n" +
                "<div class=\"slide\">\n<h1 id=\"welcome-to-slides\" style=\"text-align: center;\">Welcome to slides" +
                "</h1>\n<p><strong>Slides</strong> is a tool to <em>make</em> and <em>present</em> HTML5 slides.</p>" +
                "\n\n</div>\n</body>\n</html>",
            online = "<!DOCTYPE html>\n<html>\n<head>\n<title>Slides</title>\n<meta charset=\"UTF-8\">\n" +
                "<link rel=\"stylesheet\" href=\"http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700|Source+Code+Pro\">\n" +
                "<link rel=\"stylesheet\" href=\"http://slides.kinte.sh/slides_assets/css/slides.css\">\n" +
                "<link rel=\"stylesheet\" href=\"http://slides.kinte.sh/slides_assets/css/slides-print.css\" media=\"print\"/>\n" +
                "<link rel=\"stylesheet\" href=\"http://slides.kinte.sh/slides_assets/css/style.css\"/>\n" +
                "<link rel=\"stylesheet\" href=\"http://slides.kinte.sh/slides_assets/css/animations.css\"/>\n" +
                "<link rel=\"stylesheet\" href=\"http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css\">\n" +
                "<script src=\"http://code.jquery.com/jquery-2.1.3.min.js\"></script>\n" +
                "<script src=\"http://slides.kinte.sh/slides_assets/js/slides.js\"></script>\n" +
                "<script src=\"http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML\"></script>\n" +
                "</head>\n\n<body>\n" +
                "<div class=\"slide\">\n<h1 id=\"welcome-to-slides\" style=\"text-align: center;\">Welcome to slides" +
                "</h1>\n<p><strong>Slides</strong> is a tool to <em>make</em> and <em>present</em> HTML5 slides.</p>" +
                "\n\n</div>\n</body>\n</html>";
        slides(input, function(err, res) {
            if(err == null) {
                assert.deepEqual(res.html, html);
                assert.deepEqual(res.offline, offline);
                assert.deepEqual(res.online, online);
                done();
            }

        });
    });

});
@@ -2128,16 +2128,17 @@
 f=%5C%22http
+s
 ://fonts
@@ -2261,32 +2261,33 @@
 et%5C%22 href=%5C%22http
+s
 ://slides.kinte.
@@ -2371,32 +2371,33 @@
 et%5C%22 href=%5C%22http
+s
 ://slides.kinte.
@@ -2504,32 +2504,33 @@
 et%5C%22 href=%5C%22http
+s
 ://slides.kinte.
@@ -2618,24 +2618,25 @@
  href=%5C%22http
+s
 ://slides.ki
@@ -2737,16 +2737,17 @@
 f=%5C%22http
+s
 ://maxcd
@@ -2848,24 +2848,25 @@
 t src=%5C%22http
+s
 ://code.jque
@@ -2944,16 +2944,17 @@
 c=%5C%22http
+s
 ://slide
@@ -3043,16 +3043,17 @@
 c=%5C%22http
+s
 ://cdn.m

test fix for commit - HTTPS for fetching assets.