|
1 |
| -'use strict'; |
| 1 | +'use strict' |
2 | 2 |
|
3 |
| -var test = require('tape'); |
4 |
| -var u = require('unist-builder'); |
5 |
| -var h = require('hastscript'); |
6 |
| -var phrasing = require('.'); |
| 3 | +var test = require('tape') |
| 4 | +var u = require('unist-builder') |
| 5 | +var h = require('hastscript') |
| 6 | +var phrasing = require('.') |
7 | 7 |
|
8 |
| -test('phrasing()', function (t) { |
9 |
| - t.notOk(phrasing(h('div', 'Alpha')), 'flow'); |
10 |
| - t.ok(phrasing(h('meta', {itemProp: 'bravo'})), 'meta w/ itemProp'); |
11 |
| - t.notOk(phrasing(h('meta', {charSet: 'utf8'})), 'meta w/o itemProp'); |
12 |
| - t.ok(phrasing(u('text', 'charlie')), 'text'); |
13 |
| - t.ok(phrasing(u('text', '\n\t')), 'inter-element white-space'); |
14 |
| - t.ok(phrasing(h('a', {href: '/'}, 'Delta')), 'listed elements (a)'); |
15 |
| - t.ok(phrasing(h('b', {id: 'echo'}, 'Foxtrott')), 'listed elements (b)'); |
16 |
| - t.ok(phrasing(h('wbr')), 'listed elements (wbr)'); |
17 |
| - t.ok(phrasing(h('svg')), 'embedded content'); |
18 |
| - t.ok(phrasing(h('link', {rel: ['stylesheet'], href: 'index.css'})), 'body-ok links'); |
| 8 | +test('phrasing()', function(t) { |
| 9 | + t.notOk(phrasing(h('div', 'Alpha')), 'flow') |
| 10 | + t.ok(phrasing(h('meta', {itemProp: 'bravo'})), 'meta w/ itemProp') |
| 11 | + t.notOk(phrasing(h('meta', {charSet: 'utf8'})), 'meta w/o itemProp') |
| 12 | + t.ok(phrasing(u('text', 'charlie')), 'text') |
| 13 | + t.ok(phrasing(u('text', '\n\t')), 'inter-element white-space') |
| 14 | + t.ok(phrasing(h('a', {href: '/'}, 'Delta')), 'listed elements (a)') |
| 15 | + t.ok(phrasing(h('b', {id: 'echo'}, 'Foxtrott')), 'listed elements (b)') |
| 16 | + t.ok(phrasing(h('wbr')), 'listed elements (wbr)') |
| 17 | + t.ok(phrasing(h('svg')), 'embedded content') |
| 18 | + t.ok( |
| 19 | + phrasing(h('link', {rel: ['stylesheet'], href: 'index.css'})), |
| 20 | + 'body-ok links' |
| 21 | + ) |
19 | 22 |
|
20 |
| - t.end(); |
21 |
| -}); |
| 23 | + t.end() |
| 24 | +}) |
0 commit comments