refactor: remove mock-fs from dev dependency

This commit is contained in:
harttle
2019-02-19 22:28:27 +08:00
parent f432aade6a
commit 852c6ad453
70 changed files with 711 additions and 795 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ TokenizationError.prototype.constructor = TokenizationError
export class ParseError extends LiquidError {
constructor (err, token) {
super(err, token)
_.assign(this, err)
this.message = err.message
super.captureStackTrace(this)
}
}
@@ -58,7 +58,7 @@ ParseError.prototype.constructor = ParseError
export class RenderError extends LiquidError {
constructor (err, tpl) {
super(err, tpl.token)
_.assign(this, err)
this.message = err.message
super.captureStackTrace(this)
}
}
-2
View File
@@ -35,8 +35,6 @@ const _date = {
return num + d.getDate()
},
// Startday is an integer of which day to start the week measuring from
// TODO: that comment was retarted. fix it.
getWeekOfYear: function (d, startDay) {
// Skip to startDay of this week
const now = this.getDayOfYear(d) + (startDay - d.getDay())