-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
36 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
coverage/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,42 @@ | ||
'use strict'; | ||
'use strict' | ||
|
||
var test = require('tape'); | ||
var phrasing = require('.'); | ||
var test = require('tape') | ||
var phrasing = require('.') | ||
|
||
test('phrasing', function (t) { | ||
t.equal( | ||
phrasing(), | ||
false, | ||
'should return `false` without node' | ||
); | ||
test('phrasing', function(t) { | ||
t.equal(phrasing(), false, 'should return `false` without node') | ||
|
||
t.equal( | ||
phrasing(null), | ||
false, | ||
'should return `false` with `null`' | ||
); | ||
t.equal(phrasing(null), false, 'should return `false` with `null`') | ||
|
||
t.equal( | ||
phrasing({type: 'foo'}), | ||
false, | ||
'should return `false` when without known `node`' | ||
); | ||
) | ||
|
||
t.equal( | ||
phrasing({type: 'link'}), | ||
true, | ||
'should return `true` when with a phrasing `node`' | ||
); | ||
) | ||
|
||
t.equal( | ||
phrasing({type: 'strong'}), | ||
true, | ||
'should return `true` when with another phrasing `node`' | ||
); | ||
) | ||
|
||
t.equal( | ||
phrasing({type: 'paragraph'}), | ||
false, | ||
'should return `false` when with a block `node`' | ||
); | ||
) | ||
|
||
t.equal( | ||
phrasing({type: 'list'}), | ||
false, | ||
'should return `false` when with another block `node`' | ||
); | ||
) | ||
|
||
t.end(); | ||
}); | ||
t.end() | ||
}) |