// MakerWorld importer helpers (lib/importers/makerworld.js). const test = require('node:test'); const assert = require('node:assert/strict'); const makerworld = require('../lib/importers/makerworld'); const page = (design) => ``; test('printable instances and the license are read from the page data', () => { const html = page({ license: 'Standard Digital File License', instances: [{ id: 650088, title: 'AMS - 0.4 Nozzle - 0.08 Layer' }, { id: 650089 }], }); assert.deepEqual(makerworld.parseInstances(html), [ { id: 650088, title: 'AMS - 0.4 Nozzle - 0.08 Layer' }, { id: 650089, title: '' }, ]); assert.equal(makerworld.parseLicense(html), 'Standard Digital File License'); assert.deepEqual(makerworld.parseInstances('