const assert = require('assert')
const SLOT = 36

module.exports = () => (bot, done) => {
  const Item = require('prismarine-item')(bot.version)

  const item1 = new Item(1, 1, 0)
  const item2 = new Item(2, 1, 0)

  bot.creative.setInventorySlot(SLOT, item1, (err) => {
    assert.ok(err instanceof Error, 'The error has not been passed')
    assert.ok(bot.inventory.slots[SLOT] == null)
  })

  bot.creative.setInventorySlot(SLOT, item2, (err) => {
    assert.ifError(err)
    assert.ok(bot.inventory.slots[SLOT] != null)
    assert.ok(bot.inventory.slots[SLOT].type === item2.type)
    done()
  })
}

@@ -208,16 +208,49 @@
  1, 0)%0A%0A
+  let firstCallbackFired = false%0A
   bot.cr
@@ -289,32 +289,32 @@
 em1, (err) =%3E %7B%0A
-
     assert.ok(er
@@ -415,16 +415,46 @@
 = null)%0A
+    firstCallbackFired = true%0A
   %7D)%0A%0A  
@@ -576,24 +576,24 @@
 T%5D != null)%0A
-
     assert.o
@@ -641,16 +641,51 @@
 2.type)%0A
+    assert.ok(firstCallbackFired)%0A%0A
     done

Add more conditions to creative test