Skip to content

Commit

Permalink
WIP: Style
Browse files Browse the repository at this point in the history
  • Loading branch information
acdvorak committed Feb 8, 2019
1 parent edbe19d commit cb8620a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/mdc-textfield/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class MDCTextFieldFoundation extends MDCFoundation<MDCTextFieldAdapter> {
* @param adapter
* @param foundationMap Map from subcomponent names to their subfoundations.
*/
constructor(adapter: MDCTextFieldAdapter, foundationMap: Partial<FoundationMapType> = {}) {
constructor(adapter?: Partial<MDCTextFieldAdapter>, foundationMap: Partial<FoundationMapType> = {}) {
super({...MDCTextFieldFoundation.defaultAdapter, ...adapter});

this.helperText_ = foundationMap.helperText;
Expand Down
9 changes: 4 additions & 5 deletions test/unit/mdc-textfield/mdc-text-field.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ import {MDCRipple} from '../../../packages/mdc-ripple/index';
import {MDCLineRipple} from '../../../packages/mdc-line-ripple/index';
import {MDCFloatingLabel} from '../../../packages/mdc-floating-label/index';
import {MDCNotchedOutline} from '../../../packages/mdc-notched-outline/index';
import {MDCTextField, MDCTextFieldFoundation, MDCTextFieldHelperText, MDCTextFieldCharacterCounter,
MDCTextFieldIcon} from '../../../packages/mdc-textfield/index';
import {
MDCTextField, MDCTextFieldFoundation, MDCTextFieldHelperText, MDCTextFieldCharacterCounter, MDCTextFieldIcon,
} from '../../../packages/mdc-textfield/index';
import {cssClasses as helperTextCssClasses} from '../../../packages/mdc-textfield/helper-text/constants';
import {cssClasses as characterCounterCssClasses} from '../../../packages/mdc-textfield/character-counter/constants';

Expand Down Expand Up @@ -467,9 +468,7 @@ test('#adapter.setLineRippleTransformOrigin calls the setRippleCenter method on
function setupMockFoundationTest(root = getFixture()) {
const MockFoundationConstructor = td.constructor(MDCTextFieldFoundation);
const mockFoundation = new MockFoundationConstructor();
const component = new MDCTextField(
root,
mockFoundation);
const component = new MDCTextField(root, mockFoundation);
return {root, component, mockFoundation};
}

Expand Down

0 comments on commit cb8620a

Please sign in to comment.