1 |
|
2 |
|
3 | import test from 'ava'
|
4 |
|
5 | import {
|
6 | default as tags,
|
7 | commaLists,
|
8 | commaListsAnd,
|
9 | commaListsOr,
|
10 | html,
|
11 | inlineLists,
|
12 | oneLine,
|
13 | oneLineCommaLists,
|
14 | oneLineCommaListsAnd,
|
15 | oneLineCommaListsOr,
|
16 | oneLineTrim,
|
17 | stripIndent
|
18 | } from './'
|
19 |
|
20 | test('common-tags exports all the right modules', (t) => {
|
21 | const exports = [
|
22 | tags,
|
23 | commaLists,
|
24 | commaListsAnd,
|
25 | commaListsOr,
|
26 | html,
|
27 | inlineLists,
|
28 | oneLine,
|
29 | oneLineCommaLists,
|
30 | oneLineCommaListsAnd,
|
31 | oneLineCommaListsOr,
|
32 | oneLineTrim,
|
33 | stripIndent
|
34 | ]
|
35 |
|
36 | t.plan(exports.length)
|
37 |
|
38 | exports.forEach((module) => {
|
39 | t.true(typeof module === 'function')
|
40 | })
|
41 | })
|