Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix(drawer): Remove numbers import from temporary drawer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sérgio Gomes committed Jan 5, 2017
1 parent 568f8c9 commit f77951e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
6 changes: 1 addition & 5 deletions packages/mdc-drawer/temporary/foundation.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

import {MDCFoundation} from '@material/base';
import {cssClasses, strings, numbers} from './constants';
import {cssClasses, strings} from './constants';

export default class MDCTemporaryDrawerFoundation extends MDCFoundation {
static get cssClasses() {
Expand All @@ -26,10 +26,6 @@ export default class MDCTemporaryDrawerFoundation extends MDCFoundation {
return strings;
}

static get numbers() {
return numbers;
}

static get defaultAdapter() {
return {
addClass: (/* className: string */) => {},
Expand Down
7 changes: 1 addition & 6 deletions test/unit/mdc-drawer/temporary.foundation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {captureHandlers} from '../helpers/foundation';
import {createMockRaf} from '../helpers/raf';
import {setupFoundationTest} from '../helpers/setup';
import MDCTemporaryDrawerFoundation from '../../../packages/mdc-drawer/temporary/foundation';
import {cssClasses, strings, numbers} from '../../../packages/mdc-drawer/temporary/constants';
import {cssClasses, strings} from '../../../packages/mdc-drawer/temporary/constants';

function setupTest() {
const {foundation, mockAdapter} = setupFoundationTest(MDCTemporaryDrawerFoundation);
Expand All @@ -40,11 +40,6 @@ test('exports cssClasses', (t) => {
t.end();
});

test('exports numbers', (t) => {
t.deepEqual(MDCTemporaryDrawerFoundation.numbers, numbers);
t.end();
});

test('defaultAdapter returns a complete adapter implementation', (t) => {
const {defaultAdapter} = MDCTemporaryDrawerFoundation;
const methods = Object.keys(defaultAdapter).filter((k) => typeof defaultAdapter[k] === 'function');
Expand Down

0 comments on commit f77951e

Please sign in to comment.