import { Assert } from '@japa/assert';
import vine from '@vinejs/vine';
import _ from 'lodash';
export const assertLibelawEvent = () => function () {
    Assert.macro('vineEquals', function (schemaA, schemaB) {
        const cleanJson = ({ refs, ...obj }) => ({ ...obj, refs: _.keys(refs) });
        const jsonA = cleanJson(vine.compile(schemaA).toJSON());
        const jsonB = cleanJson(vine.compile(schemaB).toJSON());
        this.notEqual(jsonA, null);
        this.deepEqual(jsonA, jsonB);
    });
};
//# sourceMappingURL=assert_vine.js.map