export abstract class EmailObject {

  stringToHave!: string;

  constructor(protected email: any, protected subject: string) {
  }

  abstract changeTagForValue(): void;

  validateEmail() {
    expect(this.email.subject).to.equal(this.subject);

    this.changeTagForValue();

    for (let s of this.stringToHave.split('\n')) {
      expect(this.email.html).to.contain(s);
    }
  }
}
