chore: fix building

This commit is contained in:
harttle
2019-05-12 21:29:58 +08:00
parent fdf0043b9c
commit d8ba009773
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -130,13 +130,13 @@ describe('xhr', () => {
server.respondWith('GET', 'https://example.com/views/foo.html',
[200, { 'Content-Type': 'text/plain' }, 'foo1'])
return engine.renderFile('foo.html')
.then((html) => {
.then((html: string) => {
expect(html).to.equal('foo1')
server.respondWith('GET', 'https://example.com/views/foo.html',
[200, { 'Content-Type': 'text/plain' }, 'foo2'])
return engine.renderFile('foo.html')
})
.then(html => expect(html).to.equal('foo2'))
.then((html:string) => expect(html).to.equal('foo2'))
})
it('should respect cache=true option', () => {
engine = new Liquid({
@@ -147,13 +147,13 @@ describe('xhr', () => {
server.respondWith('GET', 'https://example.com/views/foo.html',
[200, { 'Content-Type': 'text/plain' }, 'foo1'])
return engine.renderFile('foo.html')
.then((html) => {
.then((html: string) => {
expect(html).to.equal('foo1')
server.respondWith('GET', 'https://example.com/views/foo.html',
[200, { 'Content-Type': 'text/plain' }, 'foo2'])
return engine.renderFile('foo.html')
})
.then(html => expect(html).to.equal('foo1'))
.then((html:string) => expect(html).to.equal('foo1'))
})
})
})