@@ -122,6 +122,7 @@ local function beforeEach()
122122 package.loaded [" miningClient" ] = nil
123123 end
124124 -- reset globals
125+ --- @type TurtleMock
125126 _G .turtle = turtleEmulator :createTurtle ()
126127 local peripheral = turtle .getPeripheralModule ()
127128 _G .peripheral = peripheral
@@ -158,6 +159,14 @@ describe("World with ores", function()
158159 beforeEach ()
159160 end )
160161 it (" - cleared all Ores" , function ()
162+ for i = 5 , 15 , 1 do
163+ turtle .addItemToInventory ({name = " minecraft:stone" , count = 64 , maxcount = 64 , placeAble = true })
164+ end
165+ local tmpChest = {name = " enderchests:ender_chest" , count = 1 , maxcount = 1 , placeAble = true }
166+ turtle .addItemToInventory (tmpChest , 16 )
167+ local enderCHest = turtleEmulator :addInventoryToItem (tmpChest )
168+
169+
161170 local mappingFunc = function (scanData )
162171 return {
163172 item = {
@@ -182,5 +191,6 @@ describe("World with ores", function()
182191 assert .are .equal (Vector .new (0 , 0 , 0 ), turtle .position )
183192 assert .are .equal (Vector .new (1 , 0 , 0 ), turtle .facing )
184193 assert .is .not_false (dirt )
194+ assert .is .falsy (turtle .getItemDetail (10 ))
185195 end )
186196end )
0 commit comments