@@ -21,55 +21,55 @@ test('Construct new Transition', () => {
21
21
22
22
test ( 'Expect error when creating a Transition with null fromState' , ( ) => {
23
23
expect ( ( ) => {
24
- new Transition ( null , null , null , null , null ) ;
24
+ new Transition ( null , null , null , null , null ) ;
25
25
} ) . toThrowError ( ) ;
26
26
} ) ;
27
27
28
28
test ( 'Expect error when creating a Transition with non State fromState' , ( ) => {
29
29
expect ( ( ) => {
30
- new Transition ( { id :1 } , null , null , null , null ) ;
30
+ new Transition ( { id : 1 } , null , null , null , null ) ;
31
31
} ) . toThrowError ( ) ;
32
32
} ) ;
33
33
34
34
test ( 'Expect error when creating a Transition with null toState' , ( ) => {
35
35
expect ( ( ) => {
36
- new Transition ( State . q0 , null , null , null , null ) ;
36
+ new Transition ( State . q0 , null , null , null , null ) ;
37
37
} ) . toThrowError ( ) ;
38
38
} ) ;
39
39
40
40
test ( 'Expect error when creating a Transition with non State toState' , ( ) => {
41
41
expect ( ( ) => {
42
- new Transition ( State . q0 , { id : 1 } , null , null , null ) ;
42
+ new Transition ( State . q0 , { id : 1 } , null , null , null ) ;
43
43
} ) . toThrowError ( ) ;
44
44
} ) ;
45
45
46
46
test ( 'Expect error when creating a Transition with null input' , ( ) => {
47
47
expect ( ( ) => {
48
- new Transition ( State . q0 , State . q0 , null , null , null ) ;
48
+ new Transition ( State . q0 , State . q0 , null , null , null ) ;
49
49
} ) . toThrowError ( ) ;
50
50
} ) ;
51
51
52
52
test ( 'Expect error when creating a Transition with non InputSymbol input' , ( ) => {
53
53
expect ( ( ) => {
54
- new Transition ( State . q0 , State . q0 , { id : 1 } , null , null ) ;
54
+ new Transition ( State . q0 , State . q0 , { id : 1 } , null , null ) ;
55
55
} ) . toThrowError ( ) ;
56
56
} ) ;
57
57
58
58
test ( 'Expect error when creating a Transition with null stackHead' , ( ) => {
59
59
expect ( ( ) => {
60
- new Transition ( State . q0 , State . q0 , InputSymbol . EPSILON , null , null ) ;
60
+ new Transition ( State . q0 , State . q0 , InputSymbol . EPSILON , null , null ) ;
61
61
} ) . toThrowError ( ) ;
62
62
} ) ;
63
63
64
64
test ( 'Expect error when creating a Transition with non Symbol stackHead' , ( ) => {
65
65
expect ( ( ) => {
66
- new Transition ( State . q0 , State . q0 , InputSymbol . EPSILON , { id : 1 } , null ) ;
66
+ new Transition ( State . q0 , State . q0 , InputSymbol . EPSILON , { id : 1 } , null ) ;
67
67
} ) . toThrowError ( ) ;
68
68
} ) ;
69
69
70
70
test ( 'Expect error when creating a Transition with null stackPush' , ( ) => {
71
71
expect ( ( ) => {
72
- new Transition ( State . q0 , State . q0 , InputSymbol . EPSILON , StackSymbol . EMPTY_STACK , null ) ;
72
+ new Transition ( State . q0 , State . q0 , InputSymbol . EPSILON , StackSymbol . EMPTY_STACK , null ) ;
73
73
} ) . toThrowError ( ) ;
74
74
} ) ;
75
75
0 commit comments