-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup ember-template-compiler's tests
Fix travis Remove assert(1) Rewrite assert-reserved-named-arguments test as well
- Loading branch information
1 parent
4c5344c
commit 7bd069a
Showing
9 changed files
with
480 additions
and
194 deletions.
There are no files selected for viewing
22 changes: 11 additions & 11 deletions
22
packages/ember-template-compiler/tests/plugins/assert-input-helper-without-block-test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
}); |
Oops, something went wrong.