test(js): result should not be undefined

This commit is contained in:
curbengh 2019-12-27 00:38:44 +00:00
parent 4e4605e1a4
commit 7d163bcb00
No known key found for this signature in database
GPG Key ID: 21EA847C35D6E034
1 changed files with 3 additions and 0 deletions

View File

@ -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)
})