function testPreset(presetName) {
            it(presetName + ' should not report any errors from the sample file', function() {
                var checker = new StringChecker();

                checker.registerDefaultRules();
                checker.configure({
                    preset: presetName
                });

                var filename = '../data/options/preset/' + presetName + '.js';
                var content = fs.readFileSync(__dirname + '/' + filename, 'utf8');
                expect(checker.checkString(content, filename)).to.have.no.errors();
            });
        }
Helper to test a given preset's configuration against its test file

Expects the given preset to have a configuration in /presets
and real code taken from that project in /test/data/options/preset

@example testPreset('google')
@param  {String} presetName