Skip to content

Commit 4fccf5a

Browse files
committed
remove unused code
1 parent a7b8ba5 commit 4fccf5a

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

devalue.test.js

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -22,38 +22,6 @@ function compare(name, fn) {
2222
test.run();
2323
}
2424

25-
/**
26-
*
27-
* @param {string} name
28-
* @param {(...args: any[]) => void} fn
29-
*/
30-
function throws(name, fn) {
31-
try {
32-
fn();
33-
console.log(`❌ ${name}`);
34-
failed += 1;
35-
} catch (e) {
36-
console.log(`✅ ${name}`);
37-
passed += 1;
38-
}
39-
}
40-
41-
/**
42-
*
43-
* @param {string} name
44-
* @param {(...args: any[]) => void} fn
45-
*/
46-
function allows(name, fn) {
47-
try {
48-
fn();
49-
console.log(`✅ ${name}`);
50-
passed += 1;
51-
} catch (e) {
52-
console.log(`❌ ${name} (${e.message})`);
53-
failed += 1;
54-
}
55-
}
56-
5725
compare('basics', (t) => {
5826
t('number', 42, '42');
5927
t('negative number', -42, '-42');

0 commit comments

Comments
 (0)