2020-12-08 20:02:32 +00:00
|
|
|
// Copyright 2020 Signal Messenger, LLC
|
2020-12-04 23:03:01 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
import { assert } from 'chai';
|
|
|
|
|
|
|
|
import { Theme, themeClassName } from '../../util/theme';
|
|
|
|
|
|
|
|
describe('themeClassName', () => {
|
|
|
|
it('returns "light-theme" when passed a light theme', () => {
|
|
|
|
assert.strictEqual(themeClassName(Theme.Light), 'light-theme');
|
|
|
|
});
|
|
|
|
|
|
|
|
it('returns "dark-theme" when passed a dark theme', () => {
|
|
|
|
assert.strictEqual(themeClassName(Theme.Dark), 'dark-theme');
|
|
|
|
});
|
|
|
|
});
|