function bundleModeChecker(fileName, expected) {
  var schemaYaml = fs.readFileSync(testdata[fileName]);
  var schema = validate(schemaYaml);
  var codegen = new CodeGenerator('bundled.db', schema);
  var codeTemplate = fs.readFileSync(template['schema.jstemplate']);
  var contents = codegen.generate('schema.js', codeTemplate);

  // There should be either true or false after enableBundledMode option.
  var string = contents.slice(contents.indexOf('enableBundledMode:'));
  string = string.slice(0, string.indexOf('\n'));
  return string.indexOf(expected.toString()) != -1;
}
@param {string} fileName
@param {boolean} expected
@return {boolean}