Commit 077a6ab 1 parent 734edd2 commit 077a6ab Copy full SHA for 077a6ab
File tree 3 files changed +44
-0
lines changed
3 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * @file Type Tests - SpecifierKind
3
+ * @module mlly/enums/tests/unit-d/SpecifierKind
4
+ */
5
+
6
+ import type TestSubject from '../kind-specifier'
7
+
8
+ describe ( 'unit-d:enums/SpecifierKind' , ( ) => {
9
+ it ( 'should match [ABSOLUTE = "absolute"]' , ( ) => {
10
+ expectTypeOf < typeof TestSubject > ( )
11
+ . toHaveProperty ( 'ABSOLUTE' )
12
+ . toMatchTypeOf < 'absolute' > ( )
13
+ } )
14
+
15
+ it ( 'should match [BARE = "bare"]' , ( ) => {
16
+ expectTypeOf < typeof TestSubject > ( )
17
+ . toHaveProperty ( 'BARE' )
18
+ . toMatchTypeOf < 'bare' > ( )
19
+ } )
20
+
21
+ it ( 'should match [RELATIVE = "relative"]' , ( ) => {
22
+ expectTypeOf < typeof TestSubject > ( )
23
+ . toHaveProperty ( 'RELATIVE' )
24
+ . toMatchTypeOf < 'relative' > ( )
25
+ } )
26
+ } )
Original file line number Diff line number Diff line change 5
5
6
6
export { default as AssertType } from './assert-type'
7
7
export { default as Format } from './format'
8
+ export { default as SpecifierKind } from './kind-specifier'
8
9
export { default as SpecifierSyntaxKind } from './kind-specifier-syntax'
9
10
export { default as StatementKind } from './kind-statement'
10
11
export { default as StatementSyntaxKind } from './kind-statement-syntax'
Original file line number Diff line number Diff line change
1
+ /**
2
+ * @file Enums - SpecifierKind
3
+ * @module mlly/enums/SpecifierKind
4
+ */
5
+
6
+ /**
7
+ * Types of module specifiers.
8
+ *
9
+ * @enum {Lowercase<string>}
10
+ */
11
+ enum SpecifierKind {
12
+ ABSOLUTE = 'absolute' ,
13
+ BARE = 'bare' ,
14
+ RELATIVE = 'relative'
15
+ }
16
+
17
+ export default SpecifierKind
You can’t perform that action at this time.
0 commit comments