@@ -2140,6 +2140,10 @@ describe('LogicCalculation', () => {
21402140 describe ( 'blue chus' , ( ) => {
21412141 beforeEach ( ( ) => {
21422142 fullSetup ( ) ;
2143+
2144+ logic = new LogicCalculation (
2145+ logic . state ( ) . incrementItem ( 'Spoils Bag' ) ,
2146+ ) ;
21432147 } ) ;
21442148
21452149 describe ( 'when the player has no blue chus' , ( ) => {
@@ -2173,6 +2177,27 @@ describe('LogicCalculation', () => {
21732177 } ) ;
21742178 } ) ;
21752179
2180+ describe ( 'when the player is able to obtain 15 blue chus' , ( ) => {
2181+ beforeEach ( ( ) => {
2182+ logic = new LogicCalculation (
2183+ logic . state ( ) . decrementItem ( 'Deku Leaf' ) ,
2184+ ) ;
2185+ } ) ;
2186+
2187+ test ( 'blue chus location is available' , ( ) => {
2188+ const isBlueChusLocationAvailable = logic . isLocationAvailable (
2189+ 'Windfall Island' ,
2190+ 'Chu Jelly Juice Shop - Give 15 Blue Chu Jelly' ,
2191+ ) ;
2192+ expect ( isBlueChusLocationAvailable ) . toEqual ( true ) ;
2193+ } ) ;
2194+
2195+ test ( 'blue chu count is 0' , ( ) => {
2196+ const blueChuCount = logic . state ( ) . getItemValue ( LogicHelper . BLUE_CHU_JELLY_COUNT_ITEM ) ;
2197+ expect ( blueChuCount ) . toEqual ( 0 ) ;
2198+ } ) ;
2199+ } ) ;
2200+
21762201 describe ( 'when the player collects 15 blue chus' , ( ) => {
21772202 beforeEach ( ( ) => {
21782203 logic = new LogicCalculation (
@@ -2207,6 +2232,27 @@ describe('LogicCalculation', () => {
22072232 const blueChuCount = logic . state ( ) . getItemValue ( LogicHelper . BLUE_CHU_JELLY_COUNT_ITEM ) ;
22082233 expect ( blueChuCount ) . toEqual ( 15 ) ;
22092234 } ) ;
2235+
2236+ describe ( 'when the player does not have spoils bag' , ( ) => {
2237+ beforeEach ( ( ) => {
2238+ logic = new LogicCalculation (
2239+ logic . state ( ) . decrementItem ( 'Spoils Bag' ) ,
2240+ ) ;
2241+ } ) ;
2242+
2243+ test ( 'blue chus location is unavailable' , ( ) => {
2244+ const isBlueChusLocationAvailable = logic . isLocationAvailable (
2245+ 'Windfall Island' ,
2246+ 'Chu Jelly Juice Shop - Give 15 Blue Chu Jelly' ,
2247+ ) ;
2248+ expect ( isBlueChusLocationAvailable ) . toEqual ( false ) ;
2249+ } ) ;
2250+
2251+ test ( 'blue chu count is 15' , ( ) => {
2252+ const blueChuCount = logic . state ( ) . getItemValue ( LogicHelper . BLUE_CHU_JELLY_COUNT_ITEM ) ;
2253+ expect ( blueChuCount ) . toEqual ( 15 ) ;
2254+ } ) ;
2255+ } ) ;
22102256 } ) ;
22112257 } ) ;
22122258} ) ;
0 commit comments