From f872bc80a3a6f2426d3209fe5b38eb81471fb230 Mon Sep 17 00:00:00 2001 From: Amio Date: Fri, 24 Aug 2018 12:40:11 +0800 Subject: [PATCH] chore: update bench --- bench/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/index.js b/bench/index.js index 83abd01..6c08163 100644 --- a/bench/index.js +++ b/bench/index.js @@ -1,12 +1,12 @@ const { Suite } = require('benchmark') const badgen = require('..') -const dockerIcon = require('../test/docker-icon-b64.js') +const icon = require('../test/icon-data-uri.js') /* eslint max-len: ["error", { "code": 90 }] */ const longParams = { subject: 'build-build-build', status: 'passing-passing-passing' } const fullParams = { subject: 'license', status: 'Apache 2.0', color: 'cyan' } const emojiParams = { subject: 'emojis', status: '💩🤱🦄💩🤱🦄', emoji: true } -const iconParams = { subject: 'docker', status: 'badge', icon: dockerIcon } +const iconParams = { subject: 'docker', status: 'badge', icon } new Suite() .add('[classic] style, long params', () => badgen(longParams))