refactor: only mock necessary levels

This commit is contained in:
Clark Du 2018-03-30 16:28:35 +08:00
parent 7890d9c078
commit 050ed02fee
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -2,7 +2,7 @@ import { Utils } from '../utils'
import mockConsole from '../utils/console'
describe('utils', () => {
const console = mockConsole()
const console = mockConsole(['warn', 'error'])
test('printWarn', () => {
Utils.printWarn('Testing printWarn', 'utils.test.js')