I want to inherit class from A API test Script to Other API

class AssertionHandler {
    constructor(data, pm) {
        this.data = data;
        this.pm = pm;
    }

    handleAssertion(act, exp, tc) {
        if (act === this.data.email) {
            const actual = act;
            const expected = this.pm.collectionVariables.get(exp).toLowerCase();

            this.pm.test(tc, () => {
                this.pm.expect(actual).to.eql(expected);
            });
        } else {
            const actual = act;
            const expected = this.pm.collectionVariables.get(exp);

            this.pm.test(tc, () => {
                this.pm.expect(actual).to.eql(expected);
            });
        }
    }
}

this my class which I want to inherit

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.