mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
e61bd6c78f
* chore: update prettier@2.x * chore: prettier auto fix * chore: fake circleci we don't need it but I want make dissapear the error
18 lines
492 B
TypeScript
18 lines
492 B
TypeScript
import * as factory from '../src';
|
|
|
|
describe('prettyFactory', () => {
|
|
const prettyfierOptions = { messageKey: 'msg', levelFirst: true, prettyStamp: false };
|
|
test('should return a function', () => {
|
|
expect(typeof factory['default']({})).toEqual('function');
|
|
});
|
|
|
|
test('should return a function', () => {
|
|
const log = {
|
|
level: 10,
|
|
foo: 'foo',
|
|
msg: '[trace] - @{foo}',
|
|
};
|
|
|
|
expect(factory['default'](prettyfierOptions)(log)).toMatchSnapshot();
|
|
});
|
|
});
|