mirror of https://github.com/curbengh/hexo-yam
test(js): result should not be undefined
This commit is contained in:
parent
4e4605e1a4
commit
7d163bcb00
|
@ -198,6 +198,9 @@ describe('js', () => {
|
|||
const input = 'var o = { "foo": 1, bar: 3 };'
|
||||
const result = j(input, { path: '' })
|
||||
const { code } = Terser.minify(input, { mangle: jsDefault.mangle })
|
||||
|
||||
expect(result).toBeDefined()
|
||||
expect(code).toBeDefined()
|
||||
expect(result).toBe(code)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue