import { defaultCompileOptions } from 'ember-template-compiler';
import TransformOldBindingSyntax from 'ember-template-compiler/plugins/transform-old-binding-syntax';
import TransformItemClass from 'ember-template-compiler/plugins/transform-item-class';
import TransformAngleBracketComponents from 'ember-template-compiler/plugins/transform-angle-bracket-components';
import TransformInputOnToOnEvent from 'ember-template-compiler/plugins/transform-input-on-to-onEvent';
import TransformTopLevelComponents from 'ember-template-compiler/plugins/transform-top-level-components';
import DeprecateRenderModel from 'ember-template-compiler/plugins/deprecate-render-model';
import TransformInlineLinkTo from 'ember-template-compiler/plugins/transform-inline-link-to';

QUnit.module('ember-template-compiler: default compile options');

QUnit.test('default options are a new copy', function() {
  notEqual(defaultCompileOptions(), defaultCompileOptions());
});

QUnit.test('has default AST plugins', function() {
  let plugins = defaultCompileOptions().plugins.ast;

  deepEqual(plugins, [
    TransformOldBindingSyntax,
    TransformItemClass,
    TransformAngleBracketComponents,
    TransformInputOnToOnEvent,
    TransformTopLevelComponents,
    DeprecateRenderModel,
    TransformInlineLinkTo
  ]);
});

import { defaultCompileOptions } from 'ember-template-compiler';
import defaultPlugins from 'ember-template-compiler/plugins';

QUnit.module('ember-template-compiler: default compile options');

QUnit.test('default options are a new copy', function() {
  notEqual(defaultCompileOptions(), defaultCompileOptions());
});

QUnit.test('has default AST plugins', function(assert) {
  assert.expect(defaultPlugins.length);

  let plugins = defaultCompileOptions().plugins.ast;

  for (let i = 0; i < defaultPlugins.length; i++) {
    let plugin = defaultPlugins[i];
    assert.ok(plugins.indexOf(plugin) > -1, `includes ${plugin}`);
  }
});

Fix tests confirming default plugins are included in compileOptions.
Fix tests confirming default plugins are included in compileOptions.
