var passiveAggressor = require('passive-aggressor')
var assert = require('assert')
assert.deepEqual(
passiveAggressor( { content: [ 'Bob was seen by three witnesses, and the witnesses were known to be in the area.' ] } ),
[ { message: 'The phrase "was seen" is passive voice.',
level: 'info',
path: [ 'content', 0 ],
source: 'passive-aggressor',
url: null },
{ message: 'The phrase "were known" is passive voice.',
level: 'info',
path: [ 'content', 0 ],
source: 'passive-aggressor',
url: null } ]
)
assert.deepEqual(
passiveAggressor( { content: [ "Resolved further: That each stock sale authorized in the above resolution shall be made pursuant to a stock purchase agreement in substantially the form attached hereto as {Form(s) Of Stock Purchase Agreement}." ] } ),
[ { message: 'The phrase "be made" is passive voice.',
level: 'info',
path: [ 'content', 0 ],
source: 'passive-aggressor',
url: null } ]
)