-
-
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
94c09fb
commit 1b613fe
Showing
3 changed files
with
32 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,20 @@ | ||
/** | ||
* @file Type Tests - VariableKind | ||
* @module esast/types/tests/unit-d/VariableKind | ||
*/ | ||
|
||
import type TestSubject from '../kind-variable' | ||
|
||
describe('unit-d:types/VariableKind', () => { | ||
it('should extract "const"', () => { | ||
expectTypeOf<TestSubject>().extract<'const'>().not.toBeNever() | ||
}) | ||
|
||
it('should extract "let"', () => { | ||
expectTypeOf<TestSubject>().extract<'let'>().not.toBeNever() | ||
}) | ||
|
||
it('should extract "var"', () => { | ||
expectTypeOf<TestSubject>().extract<'var'>().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
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,11 @@ | ||
/** | ||
* @file Type Definitions - VariableKind | ||
* @module esast/types/VariableKind | ||
*/ | ||
|
||
/** | ||
* Variable declaration kinds. | ||
*/ | ||
type VariableKind = 'const' | 'let' | 'var' | ||
|
||
export type { VariableKind as default } |