remove on test and change method name

This commit is contained in:
kamontat 2017-07-15 21:58:25 +07:00
parent b04ada662f
commit 816596fab0
2 changed files with 1 additions and 4 deletions

View File

@ -188,9 +188,6 @@ describe "BeautifyLanguages", ->
beautifyCompleted = false
completionFun = (text) ->
try
logger.verbose(expectedTestPath, text)
logger.verbose(expectedTestPath, text.message)
logger.verbose(expectedTestPath, text.toString())
expect(text instanceof Error).not.toEqual(true, text.message or text.toString())
return beautifyCompleted = true if text instanceof Error
# logger.verbose(expectedTestPath, text) if ext is ".less"

View File

@ -16,7 +16,7 @@ module.exports = class TypeScriptFormatter extends Beautifier
formatterUtils = require("typescript-formatter/lib/utils")
# @verbose('format', format, formatterUtils)
opts = formatterUtils.createDefaultFormatCodeOptions()
opts = formatterUtils.createDefaultFormatCodeSettings()
if options.indent_with_tabs
opts.ConvertTabsToSpaces = false