From b256b23138a9a0627bc663b9a01e0164dc97ed5c Mon Sep 17 00:00:00 2001 From: Amio Date: Thu, 19 Jul 2018 11:19:09 +0800 Subject: [PATCH] (chore) examples, benchmarks update --- bench/index.js | 6 +++--- preview/serve.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bench/index.js b/bench/index.js index 16342ec..6fa5d57 100644 --- a/bench/index.js +++ b/bench/index.js @@ -2,14 +2,14 @@ const { Suite } = require('benchmark') const badgen = require('..') const longParams = { subject: 'build-build-build', status: 'passing-passing-passing' } -const fullParams = { subject: 'license', status: 'MIT', color: 'cyan' } -const emojiParams = { subject: 'emojis', status: '💩🤱🦄', color: 'cyan' } +const fullParams = { subject: 'license', status: 'Apache 2.0', color: 'cyan' } +const emojiParams = { subject: 'emojis', status: '💩🤱🦄💩🤱🦄', color: 'cyan' } new Suite() .add('[classic] style, long params ', () => badgen(longParams)) .add('[classic] style, full params ', () => badgen(fullParams)) .add(' [flat] style, long params ', () => badgen({ style: 'flat', ...longParams })) .add(' [flat] style, full params ', () => badgen({ style: 'flat', ...fullParams })) - .add('[classic] style, multi bytes ', () => badgen(emojiParams)) + .add('[classic] style, emoji params', () => badgen(emojiParams)) .on('cycle', event => console.log(String(event.target))) .run() diff --git a/preview/serve.js b/preview/serve.js index 2ec4465..1cf0b8c 100644 --- a/preview/serve.js +++ b/preview/serve.js @@ -25,7 +25,7 @@ const serveIndex = serveMarked(md, { title: 'Badgen - Fast badge generator', preset: 'merri', inlineCSS: ` - body { color: #333 } + body { color: #333; padding-bottom: 5em } a { text-decoration: none; color: #06D } a:hover { text-decoration: underline } table { border-spacing: 0 }