File: replace-ava-by-tape.diff

package info (click to toggle)
node-string-width 4.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 304 kB
  • sloc: makefile: 2
file content (34 lines) | stat: -rw-r--r-- 993 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Description: replace ava by tape
Author: Xavier Guimard <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2020-04-29

--- a/test.js
+++ b/test.js
@@ -1,5 +1,5 @@
-import test from 'ava';
-import stringWidth from '.';
+const test = require('tape');
+const stringWidth = require('.');
 
 test('main', t => {
 	t.is(stringWidth('abcde'), 5);
@@ -15,6 +15,7 @@
 	t.is(stringWidth('\u{2194}\u{FE0F}'), 2, '↔️ default text presentation character rendered as emoji');
 	t.is(stringWidth('\u{1F469}'), 2, '👩 emoji modifier base (Emoji_Modifier_Base)');
 	t.is(stringWidth('\u{1F469}\u{1F3FF}'), 2, '👩🏿 emoji modifier base followed by a modifier');
+    t.end();
 });
 
 test('ignores control characters', t => {
@@ -24,8 +25,10 @@
 	t.is(stringWidth(String.fromCharCode(134)), 0);
 	t.is(stringWidth(String.fromCharCode(159)), 0);
 	t.is(stringWidth('\u001B'), 0);
+    t.end();
 });
 
 test('handles combining characters', t => {
 	t.is(stringWidth('x\u0300'), 1);
+    t.end();
 });