UNPKG

mailosaur

Version:

The Mailosaur Node library lets you integrate email and SMS testing into your continuous integration process.

12 lines (9 loc) 296 B
const SpamAssassinRule = require('./spamAssassinRule'); class SpamAssassinResult { constructor(data = {}) { this.score = data.score; this.result = data.result; this.rules = (data.rules || []).map((i) => (new SpamAssassinRule(i))); } } module.exports = SpamAssassinResult;