test: update tests

pull/15/head
Amio 2018-08-24 11:01:27 +08:00
rodzic da756fca74
commit 166ed83488
2 zmienionych plików z 3 dodań i 12 usunięć

Wyświetl plik

@ -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
`

Wyświetl plik

@ -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()
})