Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
markallenramirez committed Sep 8, 2023
1 parent 51d6dcf commit 5f89ec1
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import getThemeType from '../getThemeType';
import { isMaterial, isCompact, current } from '../../../ui/themes';
import {
isFluent, isMaterial, isCompact, current,
} from '../../../ui/themes';

jest.mock('../../../ui/themes', () => ({
current: jest.fn(() => 'test_current'),
isFluent: jest.fn(() => 'test_isFluent'),
isMaterial: jest.fn(() => 'test_isMaterial'),
isCompact: jest.fn(() => 'test_isCompact'),
}));
Expand All @@ -13,8 +16,12 @@ describe('getThemeType', () => {
.toEqual({
isCompact: 'test_isCompact',
isMaterial: 'test_isMaterial',
isFluent: 'test_isFluent',
});

expect(isFluent)
.toBeCalledWith('test_current');

expect(isMaterial)
.toBeCalledWith('test_current');

Expand Down

0 comments on commit 5f89ec1

Please sign in to comment.