Sha256: 8ddefacf294d2703975176825336ccdb2cda63708df44aaf20ebf64b6327e714

Contents?: true

Size: 576 Bytes

Versions: 3

Compression:

Stored size: 576 Bytes

Contents

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

moduleFor(
  'ember-template-compiler: assert-input-helper-without-block',
  class extends AbstractTestCase {
    ['@test Using {{#input}}{{/input}} is not valid']() {
      let expectedMessage = `The {{input}} helper cannot be used in block form. ('baz/foo-bar' @ L1:C0) `;

      expectAssertion(() => {
        compile('{{#input value="123"}}Completely invalid{{/input}}', {
          moduleName: 'baz/foo-bar',
        });
      }, expectedMessage);
    }
  }
);

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
discourse-ember-source-3.6.0.0 dist/es/ember-template-compiler/tests/plugins/assert-input-helper-without-block-test.js
discourse-ember-source-3.5.1.1 dist/es/ember-template-compiler/tests/plugins/assert-input-helper-without-block-test.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-template-compiler/tests/plugins/assert-input-helper-without-block-test.js