mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Removed bad JS tests, upgrade QUnit + ember-qunit
This commit is contained in:
6
test/javascripts/components/ace-editor-test.js.es6
Normal file
6
test/javascripts/components/ace-editor-test.js.es6
Normal file
@@ -0,0 +1,6 @@
|
||||
moduleForComponent('ace-editor', {needs: []});
|
||||
|
||||
test('changing colors', function(assert) {
|
||||
assert.expect(0);
|
||||
var component = this.subject();
|
||||
});
|
||||
17
test/javascripts/components/text-field-test.js.es6
Normal file
17
test/javascripts/components/text-field-test.js.es6
Normal file
@@ -0,0 +1,17 @@
|
||||
moduleForComponent("text-field", {needs: []});
|
||||
|
||||
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");
|
||||
});
|
||||
Reference in New Issue
Block a user