async function testApiStubMethod(name) {
    await t.test(`should export a stub of API#${name}`, (t, end) => {
      const { api } = t.nr
      assert.ok(api[name])
      assert.equal(typeof api[name], 'function')
      assert.doesNotThrow(() => {
        api[name]('arg')
      })
      end()
    })
  }
This tests that every API method is a function and
does not throw when calling it
@param name