Skip to content

Commit

Permalink
Merge pull request #16010 from karthiick/cleanup_ember_template_compiler
Browse files Browse the repository at this point in the history
Cleanup ember-template-compiler's tests
  • Loading branch information
rwjblue authored Dec 27, 2017
2 parents cd61ae4 + 7bd069a commit 8a9f260
Show file tree
Hide file tree
Showing 9 changed files with 480 additions and 194 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { compile } from '../../index';
import { moduleFor, AbstractTestCase } from 'internal-test-helpers';

QUnit.module('ember-template-compiler: assert-input-helper-without-block');
moduleFor('ember-template-compiler: assert-input-helper-without-block', class extends AbstractTestCase {
['@test Using {{#input}}{{/input}} is not valid']() {

QUnit.test('Using {{#input}}{{/input}} is not valid', function() {
expect(1);
let expectedMessage =
`The {{input}} helper cannot be used in block form. ('baz/foo-bar' @ L1:C0) `;

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);
expectAssertion(() => {
compile('{{#input value="123"}}Completely invalid{{/input}}', {
moduleName: 'baz/foo-bar'
});
}, expectedMessage);
}
});
Loading

0 comments on commit 8a9f260

Please sign in to comment.