Const arrayTestCases
arrayTestCases: (false | true | string[])[][] = [[['value1'], ['value1'], true],[['value1'], ['value2'], false],[['value1', 'value2'], ['value1', 'value2'], true],[['value1', 'value2'], ['value2', 'value1'], false],[['value1'], ['value1', 'value2'], false],]
Const objectTestCases
objectTestCases: ((string | false | true | { arrayTest: string[]; booleanTest: boolean; nullTest: null; numberTest: number; stringTest: string })[] | (string | false | true | { propA: string; propB: string; propC: string } | { propA: string; propB: string })[] | (string | false | true | { propA: string; propB: object })[] | (string | false | true | { propA: ({ propB: string } | { propC: string })[] })[])[] = [[{booleanTest: true,numberTest: 2,nullTest: null,stringTest: '<em>',arrayTest: ['value 1', 'value 2'],},{booleanTest: true,numberTest: 2,nullTest: null,stringTest: '<em>',arrayTest: ['value 1', 'value 2'],},true,'should return true when objects with all types match',],[{ propA: 'valueA', propB: 'valueB', propC: 'valueC' },{ propB: 'valueB', propA: 'valueA', propC: 'valueC' },true,'should return true when object property order changes',],[{ propA: 'valueA', propB: 'valueB', propC: 'valueC' },{ propA: 'valueA', propB: 'valueB' },false,'should return false when object number of properties differ',],[{ propA: 'valueA', propB: { propC: 'valueC' } },{ propA: 'valueA', propB: { propC: 'valueC' } },true,'should return true when object property contains a nested object',],[{ propA: 'valueA', propB: { propC: 'valueC' } },{ propA: 'valueA', propB: { propC: 'valueD' } },false,'should return false when object property contains a nested object that differ',],[{ propA: [{ propB: 'valueB' }, { propC: 'valueC' }] },{ propA: [{ propB: 'valueB' }, { propC: 'valueC' }] },true,'should return true when object property contains an array of object',],[{ propA: [{ propB: 'valueB' }, { propC: 'valueC' }] },{ propA: [{ propC: 'valueC' }, { propB: 'valueB' }] },false,'should return false when object property contains an array of object in different order',],]
Const primitiveTestCases
primitiveTestCases: ((number | false | true)[] | (string | false | true)[])[] = [[null, null, true],[true, true, true],[false, false, true],[true, false, false],[1, 1, true],[1, 2, false],['value1', 'value1', true],['value1', 'value2', false],]
A custom payload format for the webhook.