'use strict';

var config = require('../lib/index');
var eslint = require('eslint');
var isObject = require('is-object');
var path = require('path');
var test = require('tape');

test('test basic properties of default config', function(t) {
  t.ok(isObject(config.extends), 'extends is an object');
  t.ok(isObject(config.parser), 'extends is an object');
  t.ok(isObject(config.parserOptions), 'extends is an object');
  t.end();
});

test('load default config in eslint to validate rule syntax is correct', function(t) {
  var cli = new eslint.CLIEngine({
    configFile: path.join(__dirname, '../lib/index.js'),
    useEslintrc: false,
  });

  t.ok(cli.executeOnText('var foo;\n'), 'can executeOnText');
  t.end();
});

@@ -292,35 +292,29 @@
 ject');%0A  t.
-ok(isObject
+equal
 (config.pars
@@ -319,32 +319,45 @@
 rser
-)
 , '
-extends is an object
+babel-eslint', 'parser is a string
 ');%0A
@@ -392,30 +392,36 @@
 rOptions), '
-extend
+parserOption
 s is an obje

Fix the check on parser being a string not object