Making progress on async

This commit is contained in:
Tim Hardy
2016-09-22 08:47:09 -05:00
parent dc85c80afe
commit 87e284159d
4 changed files with 171 additions and 63 deletions
+5 -3
View File
@@ -1,3 +1,5 @@
// temporary
var Promise = require('any-promise');
const chai = require("chai");
const should = chai.should();
const expect = chai.expect;
@@ -207,7 +209,7 @@ describe('tags', function() {
test('{% decrement one %}{{one}}', '0');
});
it.only('should support tablerow', function() {
it('should support tablerow', function() {
src = '{% tablerow i in alpha cols:2 %}{{ i }}{% endtablerow %}';
dst = '<table>' +
'<tr class="row1"><td class="col1">a</td><td class="col2">b</td></tr>' +
@@ -261,8 +263,8 @@ describe('tags', function() {
test(src, dst);
});
it('should support include', function() {
expect(liquid.renderFile('/current.html', ctx)).to.equal('barFOObar');
it.only('should support include', function() {
return liquid.renderFile('/current.html', ctx).should.eventually.equal('barFOObar');
});
it('should support include with relative path', function() {