Skip to content

Commit

Permalink
feat(nightingale-formatter): remove deprecated styleToHtmlStyle export
Browse files Browse the repository at this point in the history
BREAKING CHANGE: removed deprecated styleToHtmlStyle export
  • Loading branch information
christophehurpeau committed Dec 11, 2021
1 parent 821cc7e commit 24e7391
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
32 changes: 23 additions & 9 deletions packages/nightingale-formatter/src/index.test.ts
@@ -1,19 +1,33 @@
import {
levelToStyles,
levelToSymbol,
styleToHtmlStyle,
styleToHtmlStyleThemeLight,
styleToHtmlStyleThemeDark,
styleToHexColor,
formatObject,
formatRecordToString,
} from '.';

describe('test exports', () => {
test('levelToStyles', () => expect(typeof levelToStyles).toBe('object'));
test('levelToSymbol', () => expect(typeof levelToSymbol).toBe('object'));
test('styleToHtmlStyle', () =>
expect(typeof styleToHtmlStyle).toBe('object'));
test('styleToHexColor', () => expect(typeof styleToHexColor).toBe('object'));
test('formatObject', () => expect(typeof formatObject).toBe('function'));
test('formatRecordToString', () =>
expect(typeof formatRecordToString).toBe('function'));
test('levelToStyles', () => {
expect(typeof levelToStyles).toBe('object');
});
test('levelToSymbol', () => {
expect(typeof levelToSymbol).toBe('object');
});
test('styleToHtmlStyleThemeLight', () => {
expect(typeof styleToHtmlStyleThemeLight).toBe('object');
});
test('styleToHtmlStyleThemeDark', () => {
expect(typeof styleToHtmlStyleThemeDark).toBe('object');
});
test('styleToHexColor', () => {
expect(typeof styleToHexColor).toBe('object');
});
test('formatObject', () => {
expect(typeof formatObject).toBe('function');
});
test('formatRecordToString', () => {
expect(typeof formatRecordToString).toBe('function');
});
});
2 changes: 0 additions & 2 deletions packages/nightingale-formatter/src/index.ts
Expand Up @@ -4,8 +4,6 @@ export {
styleToHtmlStyleThemeDark,
styleToHtmlStyleThemeLight,
} from './styleToHtmlStyle';
/** @deprecated */
export { styleToHtmlStyleThemeLight as styleToHtmlStyle } from './styleToHtmlStyle';
export type { StyleToHtmlStyle } from './styleToHtmlStyle';
export { styleToHexColor } from './styleToHexColor';
export { formatObject } from './formatObject';
Expand Down

0 comments on commit 24e7391

Please sign in to comment.