text: const test = require("ava");
  const fs = require("fs");
  const {
  	promisify,
  } = require("util");
  
  const assertExpectedLines = require("../../helper/assert-expected-lines");
  
  const writeFile = promisify(fs.writeFile);
  
  test("lines", async (t) => {
  	const {
  		generate,
  	} = require("../../..");
  
  	const generated = await generate({
  		filepath: `${__filename}.h`,
  		library: "does-not-matter",
  	});
  
  	await writeFile(__filename + ".output.js", generated.serialized);
  
  	t.deepEqual(generated.unmapped, []);
  
  	const expectedTypes = `
  		const js_void = ref.types.void;
  		const js_voidPointer = ref.refType(js_void);
  		const my_struct = js_voidPointer;
  		const my_struct_t = my_struct;
  	`;
  
  	assertExpectedLines(t, expectedTypes, generated.serialized);
  
  	const expectedFunctions = "do_stuff: [js_void, [my_struct_t]],";
  
  	assertExpectedLines(t, expectedFunctions, generated.serialized);
  });
  