const assert = require('node:assert/strict');
const serializers = require('../../../../../../../core/server/api/endpoints/utils/serializers');

describe('Unit: endpoints/utils/serializers/input/members', function () {
    describe('all', function () {
        it('converts tiers include', function () {
            const apiConfig = {};
            const frame = {
                options: {
                    context: {},
                    withRelated: ['tiers']
                }
            };

            serializers.input.members.all(apiConfig, frame);
            assert(frame.options.withRelated.includes('products'));
        });
    });
});
