17 строки
354 B
JavaScript
17 строки
354 B
JavaScript
import { createLogger } from 'logger';
|
|
|
|
describe('logger.createLogger()', function() {
|
|
|
|
it('should throw if LOG_LEVEL is not an expected value', () => {
|
|
expect(() => {
|
|
var fakeProcess = {
|
|
env: {
|
|
LOG_LEVEL: 'whatever',
|
|
},
|
|
};
|
|
createLogger(fakeProcess);
|
|
}).toThrow(/unknown level whatever/);
|
|
});
|
|
|
|
});
|