Skip to content

Commit

Permalink
chore: fix tslint
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche committed Dec 4, 2017
1 parent 2a3b04c commit 93d3174
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ module.exports = function (config) {
],

specReporter: {
failFast: false,
suppressFailed: false, // do not print information about failed tests
suppressPassed: true, // do not print information about passed tests
suppressSkipped: false // do not print information about skipped tests
suppressSkipped: true // do not print information about skipped tests
},

// list of files to exclude
Expand All @@ -114,10 +115,6 @@ module.exports = function (config) {
sauceLabs ? 'saucelabs' : []
),

mochaReporter: {
showDiff: true
},

browserLogOptions: { terminal: true },
browserConsoleLogOptions: { terminal: true },

Expand Down
2 changes: 1 addition & 1 deletion packages/nerv-server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function renderStylesToString (styles: string | object): string {
}
}

function renderVNodeToString (vnode, parent, context, isSvg? : boolean) {
function renderVNodeToString (vnode, parent, context, isSvg?: boolean) {
if (isNullOrUndef(vnode) || isBoolean(vnode)) {
return ''
}
Expand Down
2 changes: 1 addition & 1 deletion packages/nerv-server/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function encodeEntities (text): string {
if (typeof text !== 'string') {
text = String(text)
}
return text.replace(/[<>\"\&\\]/g, m => entities[m])
return text.replace(/[<>\"\&\\]/g, (m) => entities[m])
}

export { extend } from 'nerv-utils'

0 comments on commit 93d3174

Please sign in to comment.