chore: add sourcemap
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
import { sleep } from '~/utils/index.util'
|
||||
import { pickImagesFromMarkdown } from '~/utils/pic.util'
|
||||
|
||||
describe('src/utils/pic.util', () => {
|
||||
it('test marked ast', () => {
|
||||
it('test marked ast', async () => {
|
||||
const res = pickImagesFromMarkdown(`
|
||||

|
||||
|
||||

|
||||
`)
|
||||
// FIXME: ReferenceError: You are trying to import a file after the Jest environment has been torn down
|
||||
// gifwrap@0.9.2
|
||||
await sleep(1)
|
||||
expect(res).toEqual([
|
||||
'https://cdn.innei.ren/bed/2021/0813211729.jpeg',
|
||||
'https://cdn.innei.ren/bed/2021/0813212633.jpg',
|
||||
|
||||
Reference in New Issue
Block a user