Sha256: 246b99fa07e0ebc8511b22ea18e180e0b7e1fe48d84e2f9abf6cdba45465682f

Contents?: true

Size: 605 Bytes

Versions: 2

Compression:

Stored size: 605 Bytes

Contents

import { compile } from '../../index';
import { moduleFor, AbstractTestCase } from 'internal-test-helpers';

moduleFor(
  'ember-template-compiler: deprecate-render',
  class extends AbstractTestCase {
    ['@test Using `{{render` without a model provides a deprecation']() {
      let expectedMessage =
        `Please refactor \`{{render "foo-bar"}}\` to a component and` +
        ` invoke via \`{{foo-bar}}\`. ('baz/foo-bar' @ L1:C0) `;

      expectDeprecation(() => {
        compile('{{render "foo-bar"}}', {
          moduleName: 'baz/foo-bar',
        });
      }, expectedMessage);
    }
  }
);

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discourse-ember-source-3.5.1.1 dist/es/ember-template-compiler/tests/plugins/deprecate-render-test.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-template-compiler/tests/plugins/deprecate-render-test.js