mirror of https://github.com/curbengh/hexo-yam
style(test): it() to test()
This commit is contained in:
parent
fa6f514a05
commit
4a5c66add2
|
@ -43,7 +43,7 @@ describe('html', () => {
|
||||||
expect(result).toBe(expected)
|
expect(result).toBe(expected)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('option - verbose', () => {
|
test('option - verbose', () => {
|
||||||
hexo.config.minify.html.verbose = true
|
hexo.config.minify.html.verbose = true
|
||||||
hexo.log.log = jest.fn()
|
hexo.log.log = jest.fn()
|
||||||
h(input, { path })
|
h(input, { path })
|
||||||
|
@ -144,7 +144,7 @@ describe('css', () => {
|
||||||
expect(result).toBe(styles)
|
expect(result).toBe(styles)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('option - verbose', async () => {
|
test('option - verbose', async () => {
|
||||||
hexo.config.minify.css.verbose = true
|
hexo.config.minify.css.verbose = true
|
||||||
hexo.log.log = jest.fn()
|
hexo.log.log = jest.fn()
|
||||||
await c(input, { path })
|
await c(input, { path })
|
||||||
|
@ -239,7 +239,7 @@ describe('js', () => {
|
||||||
expect(result).toBe(code)
|
expect(result).toBe(code)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('option - verbose', () => {
|
test('option - verbose', () => {
|
||||||
hexo.config.minify.js.verbose = true
|
hexo.config.minify.js.verbose = true
|
||||||
const path = 'foo'
|
const path = 'foo'
|
||||||
hexo.log.log = jest.fn()
|
hexo.log.log = jest.fn()
|
||||||
|
@ -338,7 +338,7 @@ describe('svg', () => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
it('option - verbose', async () => {
|
test('option - verbose', async () => {
|
||||||
hexo.config.minify.svg.verbose = true
|
hexo.config.minify.svg.verbose = true
|
||||||
hexo.log.log = jest.fn()
|
hexo.log.log = jest.fn()
|
||||||
await s()
|
await s()
|
||||||
|
@ -549,7 +549,7 @@ describe('gzip', () => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
it('option - verbose', async () => {
|
test('option - verbose', async () => {
|
||||||
hexo.config.minify.gzip.verbose = true
|
hexo.config.minify.gzip.verbose = true
|
||||||
hexo.log.log = jest.fn()
|
hexo.log.log = jest.fn()
|
||||||
await g()
|
await g()
|
||||||
|
@ -764,7 +764,7 @@ describe('brotli', () => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
it('option - verbose', async () => {
|
test('option - verbose', async () => {
|
||||||
hexo.config.minify.brotli.verbose = true
|
hexo.config.minify.brotli.verbose = true
|
||||||
hexo.log.log = jest.fn()
|
hexo.log.log = jest.fn()
|
||||||
await b()
|
await b()
|
||||||
|
|
Loading…
Reference in New Issue