@@ -122,6 +122,7 @@ local function beforeEach()
122
122
package.loaded [" miningClient" ] = nil
123
123
end
124
124
-- reset globals
125
+ --- @type TurtleMock
125
126
_G .turtle = turtleEmulator :createTurtle ()
126
127
local peripheral = turtle .getPeripheralModule ()
127
128
_G .peripheral = peripheral
@@ -158,6 +159,14 @@ describe("World with ores", function()
158
159
beforeEach ()
159
160
end )
160
161
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
+
161
170
local mappingFunc = function (scanData )
162
171
return {
163
172
item = {
@@ -182,5 +191,6 @@ describe("World with ores", function()
182
191
assert .are .equal (Vector .new (0 , 0 , 0 ), turtle .position )
183
192
assert .are .equal (Vector .new (1 , 0 , 0 ), turtle .facing )
184
193
assert .is .not_false (dirt )
194
+ assert .is .falsy (turtle .getItemDetail (10 ))
185
195
end )
186
196
end )
0 commit comments