Skip to content

Function: mockCreateIniFile()

ts
function mockCreateIniFile(content: string): ini_file;

Mock of the engine create_ini_file global.

Accepts JSON section data for tests that want exact object values. If JSON parsing fails, it parses the content as INI/LTX text and returns an ini_file mock backed by that parsed data.

Parameters

ParameterTypeDescription
contentstringJSON section data or INI/LTX content.

Returns

ini_file

Engine-typed ini_file mock.