Skip to content

Commit

Permalink
Remove redundant registrations
Browse files Browse the repository at this point in the history
These are already handled in `buildOwner()`
  • Loading branch information
chancancode committed Dec 13, 2017
1 parent 27204b0 commit 6fe5504
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
@@ -1,17 +1,10 @@
import { assign } from 'ember-utils';
import { set } from 'ember-metal';
import { TextField, Checkbox, Component } from '../../utils/helpers';
import { Component } from '../../utils/helpers';
import { RenderingTest, moduleFor } from '../../utils/test-case';
import { runDestroy } from 'internal-test-helpers';

class InputRenderingTest extends RenderingTest {
constructor() {
super();

this.registerComponent('-text-field', { ComponentClass: TextField });
this.registerComponent('-checkbox', { ComponentClass: Checkbox });
}

$input() {
return this.$('input');
}
Expand Down
@@ -1,17 +1,10 @@
import { assign } from 'ember-utils';
import { set } from 'ember-metal';
import { TextArea } from '../../utils/helpers';
import { RenderingTest, moduleFor } from '../../utils/test-case';
import { classes } from '../../utils/test-helpers';
import { applyMixins } from '../../utils/abstract-test-case';

class TextAreaRenderingTest extends RenderingTest {
constructor() {
super();

this.registerComponent('-text-area', { ComponentClass: TextArea });
}

assertTextArea({ attrs, value } = {}) {
let mergedAttrs = assign({ 'class': classes('ember-view ember-text-area') }, attrs);
this.assertComponentElement(this.firstChild, { tagName: 'textarea', attrs: mergedAttrs });
Expand Down
2 changes: 0 additions & 2 deletions packages/ember-glimmer/tests/utils/helpers.js
Expand Up @@ -8,9 +8,7 @@ export {
Helper,
helper,
Component,
TextArea,
LinkComponent,
TextField,
InteractiveRender,
InertRenderer,
htmlSafe,
Expand Down

0 comments on commit 6fe5504

Please sign in to comment.