From 166ed83488dba1bd0a78f36b361affea4aed0d11 Mon Sep 17 00:00:00 2001 From: Amio Date: Fri, 24 Aug 2018 11:01:27 +0800 Subject: [PATCH] test: update tests --- tap-snapshots/test-calc-text-width.spec.js-TAP.test.js | 8 ++------ test/calc-text-width.spec.js | 7 +------ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/tap-snapshots/test-calc-text-width.spec.js-TAP.test.js b/tap-snapshots/test-calc-text-width.spec.js-TAP.test.js index ebe989d..ee2425d 100644 --- a/tap-snapshots/test-calc-text-width.spec.js-TAP.test.js +++ b/tap-snapshots/test-calc-text-width.spec.js-TAP.test.js @@ -10,13 +10,9 @@ exports[`test/calc-text-width.spec.js TAP calc width for "npm" > result is corre ` exports[`test/calc-text-width.spec.js TAP calc width for unicode > result is correct 1`] = ` -580 +550 ` exports[`test/calc-text-width.spec.js TAP calc width for emojis > result is correct 1`] = ` -348 -` - -exports[`test/calc-text-width.spec.js TAP calc width for (not really) emojis > result is correct 1`] = ` -0 +330 ` diff --git a/test/calc-text-width.spec.js b/test/calc-text-width.spec.js index 407b3ab..4757754 100644 --- a/test/calc-text-width.spec.js +++ b/test/calc-text-width.spec.js @@ -26,11 +26,6 @@ tap.test('calc width for accented characters', t => { }) tap.test('calc width for emojis', t => { - t.matchSnapshot(calcWidth('💩🤱🦄', true), 'result is correct') - t.end() -}) - -tap.test('calc width for (not really) emojis', t => { - t.matchSnapshot(calcWidth('', true), 'result is correct') + t.matchSnapshot(calcWidth('💩🤱🦄'), 'result is correct') t.end() })