-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
22 lines (17 loc) · 593 Bytes
/
test.js
File metadata and controls
22 lines (17 loc) · 593 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import test from 'ava';
import hacker from './index.js';
test('hacker abbreviation return type to be string', t => {
t.is(typeof hacker().abbreviation(), 'string');
});
test('hacker adjective return type to be string', t => {
t.is(typeof hacker().adjective(), 'string');
});
test('hacker ingverb return type to be string', t => {
t.is(typeof hacker().ingverb(), 'string');
});
test('hacker verb return type to be string', t => {
t.is(typeof hacker().verb(), 'string');
});
test('hacker noun return type to be string', t => {
t.is(typeof hacker().noun(), 'string');
});