-
-
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.
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
- Loading branch information
1 parent
a9c8171
commit bac1a98
Showing
3 changed files
with
47 additions
and
0 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,25 @@ | ||
/** | ||
* @file Type Tests - Comment | ||
* @module esast/types/tests/unit-d/Comment | ||
*/ | ||
|
||
import type { | ||
DocblockComment, | ||
MultiLineComment, | ||
SingleLineComment | ||
} from '@flex-development/esast' | ||
import type TestSubject from '../comment' | ||
|
||
describe('unit-d:types/Comment', () => { | ||
it('should extract DocblockComment', () => { | ||
expectTypeOf<TestSubject>().extract<DocblockComment>().not.toBeNever() | ||
}) | ||
|
||
it('should extract MultiLineComment', () => { | ||
expectTypeOf<TestSubject>().extract<MultiLineComment>().not.toBeNever() | ||
}) | ||
|
||
it('should extract SingleLineComment', () => { | ||
expectTypeOf<TestSubject>().extract<SingleLineComment>().not.toBeNever() | ||
}) | ||
}) |
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,21 @@ | ||
/** | ||
* @file Type Definitions - Comment | ||
* @module esast/types/Comment | ||
*/ | ||
|
||
import type { | ||
DocblockComment, | ||
MultiLineComment, | ||
SingleLineComment | ||
} from '@flex-development/esast' | ||
|
||
/** | ||
* A docblock, multi line, or single line comment. | ||
* | ||
* @see {@linkcode DocblockComment} | ||
* @see {@linkcode MultiLineComment} | ||
* @see {@linkcode SingleLineComment} | ||
*/ | ||
type Comment = DocblockComment | MultiLineComment | SingleLineComment | ||
|
||
export type { Comment as default } |
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