Welcome to the Linux Foundation Forum!

Bug in Exploring Service Mocking: Mocking POST Routes (5)

The line fastify.mockDataInsert(request, opts.prefix.slice(1), data) incorrectly states the number of parameters for the previously defined function mockDataInsert, which only requires two. The correction should be fastify.mockDataInsert(opts.prefix.slice(1), data as the function is defined as fastify.mockDataInsert(category, data).

Comments

Categories

Upcoming Training