mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-05 13:21:35 -05:00
17 lines
451 B
JavaScript
17 lines
451 B
JavaScript
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");
|
|
});
|