-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.js
21 lines (18 loc) · 1.06 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import test from 'ava';
import capitalize from './index';
const origin = `
A sentence can include words grouped meaningfully to express a statement,
question, exclamation, request, command or suggestion. С точки зрения
пунктуации (§12.2), предложение как законченная единица речи оформляется
в конце точкой, восклицательным или вопросительным знаками — или многоточием.
`.trim();
const lower = `
a sentence can include words grouped meaningfully to express a statement,
question, exclamation, request, command or suggestion. с точки зрения
пунктуации (§12.2), предложение как законченная единица речи оформляется
в конце точкой, восклицательным или вопросительным знаками — или многоточием.
`.trim();
test(t => {
t.is(capitalize(origin), origin);
t.is(capitalize(lower), origin);
});