'use strict';
var data = {
anchor: { arg: 'bar"baz"', expected: 'foo' },
big: 'foo',
blink: '',
bold: 'foo',
fixed: 'foo',
fontcolor: { arg: 'blue"red"green', expected: 'foo' },
fontsize: { arg: '10"large"small', expected: 'foo' },
italics: 'foo',
link: { arg: 'url"http://"', expected: 'foo' },
small: 'foo',
strike: 'foo',
sub: 'foo',
sup: 'foo'
};
module.exports = function (method, name, t) {
var result = data[name] || {};
var expected = typeof result === 'string' ? result : result.expected;
var actual = typeof result === 'string' ? method('foo') : method('foo', result.arg);
t.equal(actual, expected, name + ': got expected result');
};