mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 04:40:39 -07:00
chore: fix building
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@
|
||||
"unit": "mocha \"test/unit/**/*.ts\"",
|
||||
"integration": "mocha \"test/integration/**/*.ts\"",
|
||||
"e2e": "npm run build && mocha \"test/e2e/**/*.ts\"",
|
||||
"test": "BUNDLES=cjs npm run build && mocha \"test/**/*.ts\"",
|
||||
"test": "BUNDLES=cjs,umd npm run build && mocha \"test/**/*.ts\"",
|
||||
"benchmark": "ts-node benchmark",
|
||||
"coverage-html": "nyc --reporter=html mocha \"test/{unit,integration}/**/*.ts\"",
|
||||
"coverage-coveralls": "nyc mocha \"test/{unit,integration}/**/*.ts\" && nyc report --reporter=text-lcov | coveralls",
|
||||
|
||||
+4
-4
@@ -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'))
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user