mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
ES6: Convert all test files over
This commit is contained in:
parent
1530f33833
commit
f977843391
52 changed files with 0 additions and 0 deletions
17
test/javascripts/views/text-field-test.js.es6
Normal file
17
test/javascripts/views/text-field-test.js.es6
Normal file
|
@ -0,0 +1,17 @@
|
|||
moduleForComponent("text-field");
|
||||
|
||||
test("renders correctly with no properties set", function() {
|
||||
var component = this.subject();
|
||||
equal(component.get('type'), "text");
|
||||
});
|
||||
|
||||
test("support a placeholder", function() {
|
||||
sandbox.stub(I18n, "t").returnsArg(0);
|
||||
|
||||
var component = this.subject({
|
||||
placeholderKey: "placeholder.i18n.key"
|
||||
});
|
||||
|
||||
equal(component.get('type'), "text");
|
||||
equal(component.get('placeholder'), "placeholder.i18n.key");
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue