Skip to content

Commit

Permalink
Cleanup ember-template-compiler's tests
Browse files Browse the repository at this point in the history
Fix travis

Remove assert(1)

Rewrite assert-reserved-named-arguments  test as well
  • Loading branch information
karthiicksiva committed Dec 27, 2017
1 parent 4c5344c commit 7bd069a
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 7bd069a

Please sign in to comment.