@@ -76,27 +76,51 @@ describe('Ability generator', () => {
76
76
} )
77
77
78
78
describe ( 'Character creation' , ( ) => {
79
- xit ( 'Random character is valid' , ( ) => {
79
+ xit ( 'Random character is valid - hitpoints ' , ( ) => {
80
80
const character = new DnDCharacter ( )
81
81
82
82
expect ( character . hitpoints ) . toEqual (
83
83
10 + DnDCharacter . getModifierFor ( character . constitution )
84
84
)
85
+ } )
86
+
87
+ xit ( 'Random character is valid - strength' , ( ) => {
88
+ const character = new DnDCharacter ( )
85
89
86
90
expect ( character . strength ) . toBeGreaterThanOrEqual ( 3 )
87
91
expect ( character . strength ) . toBeLessThanOrEqual ( 18 )
92
+ } )
93
+
94
+ xit ( 'Random character is valid - dexterity' , ( ) => {
95
+ const character = new DnDCharacter ( )
88
96
89
97
expect ( character . dexterity ) . toBeGreaterThanOrEqual ( 3 )
90
98
expect ( character . dexterity ) . toBeLessThanOrEqual ( 18 )
99
+ } )
100
+
101
+ xit ( 'Random character is valid - constitution' , ( ) => {
102
+ const character = new DnDCharacter ( )
91
103
92
104
expect ( character . constitution ) . toBeGreaterThanOrEqual ( 3 )
93
105
expect ( character . constitution ) . toBeLessThanOrEqual ( 18 )
106
+ } )
107
+
108
+ xit ( 'Random character is valid - intelligence' , ( ) => {
109
+ const character = new DnDCharacter ( )
94
110
95
111
expect ( character . intelligence ) . toBeGreaterThanOrEqual ( 3 )
96
112
expect ( character . intelligence ) . toBeLessThanOrEqual ( 18 )
113
+ } )
114
+
115
+ xit ( 'Random character is valid - wisdom' , ( ) => {
116
+ const character = new DnDCharacter ( )
97
117
98
118
expect ( character . wisdom ) . toBeGreaterThanOrEqual ( 3 )
99
119
expect ( character . wisdom ) . toBeLessThanOrEqual ( 18 )
120
+ } )
121
+
122
+ xit ( 'Random character is valid - charisma' , ( ) => {
123
+ const character = new DnDCharacter ( )
100
124
101
125
expect ( character . charisma ) . toBeGreaterThanOrEqual ( 3 )
102
126
expect ( character . charisma ) . toBeLessThanOrEqual ( 18 )
0 commit comments