Skip to content

Commit

Permalink
merge conflict resolution #24 #37
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcarlisle committed Dec 3, 2015
2 parents 1a84d2a + dfa64a1 commit 364150e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/handlebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ console.log(buildPost("hello you"))
module.exports = {
buildPost: buildPost
}

module.exports = buildPost;
14 changes: 14 additions & 0 deletions tests/handlebar-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var test = require('tape');
var buildPost = require('../lib/handlebars.js');
var fs = require('fs');


test("amp compliant html", function(t){
var postData = "blah blah";
var buildPostResult = buildPost(postData);
var actual = (buildPostResult.indexOf("<html amp>") > -1) && (buildPostResult.indexOf("blah blah") > -1);
var expected = true;

t.equal(actual, expected, "WOOO");
t.end();
});

0 comments on commit 364150e

Please sign in to comment.