@@ -2115,6 +2115,10 @@ describe('LogicCalculation', () => {
21152115 describe ( 'blue chus' , ( ) => {
21162116 beforeEach ( ( ) => {
21172117 fullSetup ( ) ;
2118+
2119+ logic = new LogicCalculation (
2120+ logic . state ( ) . incrementItem ( 'Spoils Bag' ) ,
2121+ ) ;
21182122 } ) ;
21192123
21202124 describe ( 'when the player has no blue chus' , ( ) => {
@@ -2148,6 +2152,27 @@ describe('LogicCalculation', () => {
21482152 } ) ;
21492153 } ) ;
21502154
2155+ describe ( 'when the player is able to obtain 15 blue chus' , ( ) => {
2156+ beforeEach ( ( ) => {
2157+ logic = new LogicCalculation (
2158+ logic . state ( ) . decrementItem ( 'Deku Leaf' ) ,
2159+ ) ;
2160+ } ) ;
2161+
2162+ test ( 'blue chus location is available' , ( ) => {
2163+ const isBlueChusLocationAvailable = logic . isLocationAvailable (
2164+ 'Windfall Island' ,
2165+ 'Chu Jelly Juice Shop - Give 15 Blue Chu Jelly' ,
2166+ ) ;
2167+ expect ( isBlueChusLocationAvailable ) . toEqual ( true ) ;
2168+ } ) ;
2169+
2170+ test ( 'blue chu count is 0' , ( ) => {
2171+ const blueChuCount = logic . state ( ) . getItemValue ( LogicHelper . BLUE_CHU_JELLY_COUNT_ITEM ) ;
2172+ expect ( blueChuCount ) . toEqual ( 0 ) ;
2173+ } ) ;
2174+ } ) ;
2175+
21512176 describe ( 'when the player collects 15 blue chus' , ( ) => {
21522177 beforeEach ( ( ) => {
21532178 logic = new LogicCalculation (
@@ -2182,6 +2207,27 @@ describe('LogicCalculation', () => {
21822207 const blueChuCount = logic . state ( ) . getItemValue ( LogicHelper . BLUE_CHU_JELLY_COUNT_ITEM ) ;
21832208 expect ( blueChuCount ) . toEqual ( 15 ) ;
21842209 } ) ;
2210+
2211+ describe ( 'when the player does not have spoils bag' , ( ) => {
2212+ beforeEach ( ( ) => {
2213+ logic = new LogicCalculation (
2214+ logic . state ( ) . decrementItem ( 'Spoils Bag' ) ,
2215+ ) ;
2216+ } ) ;
2217+
2218+ test ( 'blue chus location is unavailable' , ( ) => {
2219+ const isBlueChusLocationAvailable = logic . isLocationAvailable (
2220+ 'Windfall Island' ,
2221+ 'Chu Jelly Juice Shop - Give 15 Blue Chu Jelly' ,
2222+ ) ;
2223+ expect ( isBlueChusLocationAvailable ) . toEqual ( false ) ;
2224+ } ) ;
2225+
2226+ test ( 'blue chu count is 15' , ( ) => {
2227+ const blueChuCount = logic . state ( ) . getItemValue ( LogicHelper . BLUE_CHU_JELLY_COUNT_ITEM ) ;
2228+ expect ( blueChuCount ) . toEqual ( 15 ) ;
2229+ } ) ;
2230+ } ) ;
21852231 } ) ;
21862232 } ) ;
21872233} ) ;
0 commit comments