Skip to content

Commit

Permalink
feat(top-app-bar): Consolidate for strings test
Browse files Browse the repository at this point in the history
  • Loading branch information
williamernest committed Feb 16, 2018
1 parent 95c7125 commit ca70eb4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/unit/mdc-top-app-bar/foundation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ import {verifyDefaultAdapter} from '../helpers/foundation';
import MDCTopAppBarFoundation from '../../../packages/mdc-top-app-bar/foundation';
import {strings} from '../../../packages/mdc-top-app-bar/constants';


suite('MDCTopAppBarFoundation');

test('exports strings', () => {
assert.isOk('strings' in MDCTopAppBarFoundation);
assert.isTrue('strings' in MDCTopAppBarFoundation);
assert.deepEqual(MDCTopAppBarFoundation.strings, strings);

});

test('defaultAdapter returns a complete adapter implementation', () => {
Expand All @@ -44,10 +45,6 @@ const setupTest = () => {
return {foundation, mockAdapter};
};

test('foundation returns strings', () => {
assert.deepEqual(MDCTopAppBarFoundation.strings, strings);
});

test('on click emits navigation icon event', () => {
const {foundation, mockAdapter} = setupTest();
const handlers = captureHandlers(mockAdapter, 'registerNavigationIconInteractionHandler');
Expand Down

0 comments on commit ca70eb4

Please sign in to comment.