Skip to content

Commit 36a1b6d

Browse files
committed
tests(options): use options in tests
1 parent cf993c2 commit 36a1b6d

File tree

2 files changed

+16
-25
lines changed

2 files changed

+16
-25
lines changed

test/chalk.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

test/index.js

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
1-
/* eslint-disable-next-line import/no-unresolved */
2-
import Logger from '../src'
1+
import {Logger} from '../src/index'
32

4-
Logger.success('logger running!')
5-
Logger.error('unexpected bahavior')
3+
const log = new Logger({
4+
prefix: '{cyan.bold [CUSTOM PREFIX] }',
5+
debug: {prefix: '{bold.blue CUSTOMDEBUG }'}
6+
})
7+
8+
log.debug('standard debug message')
9+
log.debug('{bgBlue.magenta CUSTOM{reset.yellow debug}{bgBlack.cyan info}}')
10+
11+
log.error('unexpected bahavior')
12+
log.success('logger running!')
13+
<<<<<<< HEAD
614
// Logger.log('{reset.magenta custom {bgBlackBright.yellow output style}}')
715
Logger.debug('standard debug info')
16+
=======
17+
18+
log.log('{bgBlue.bold.magenta custom output style}')
19+
>>>>>>> 1871a68 (* feat: pass options to Logger instance)
820

0 commit comments

Comments
 (0)