From 61cb31ce26864f4afbd36b0f8af2bf0e5f5e8c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Sun, 22 Jul 2018 13:23:20 +0200 Subject: [PATCH] Require 100% coverage. --- .nycrc | 8 ++++---- src/index.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.nycrc b/.nycrc index 2f2d6df..0107782 100644 --- a/.nycrc +++ b/.nycrc @@ -1,9 +1,9 @@ { "include": ["src/**/*.js"], - "lines": 95, - "branches": 95, - "statements": 95, - "functions": 95, + "lines": 100, + "branches": 100, + "statements": 100, + "functions": 100, "reporter": ["lcov"], "check-coverage": true, "sourceMap": false, diff --git a/src/index.js b/src/index.js index 8e81260..ac797a3 100644 --- a/src/index.js +++ b/src/index.js @@ -52,7 +52,7 @@ function findEmoji(names, match) { return null; } -function tokenize(text, opts = {}) { +function tokenize(text, opts) { let chunk; let i = 0; const mentions = sortMentions(opts.mentions || []);