Skip to content

Commit 1dc7cc6

Browse files
committed
test: refine
1 parent 3c8339f commit 1dc7cc6

File tree

22 files changed

+116
-161
lines changed

22 files changed

+116
-161
lines changed

packages/@vuepress/test-utils/babel.config.js renamed to babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
'env': {
33
'test': {
44
'presets': [
5-
['@babel/preset-env', { 'targets': { 'node': 8 }}]
5+
['@babel/preset-env', { 'targets': { 'node': 'current' }}]
66
]
77
}
88
}

packages/@vuepress/core/__test__/plugin-api/AsyncOption.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import AsyncOption from '../../lib/plugin-api/abstract/AsyncOption'
1+
const AsyncOption = require('../../lib/plugin-api/abstract/AsyncOption')
22

33
describe('AsyncOption', () => {
44
test('parallelApply', async () => {
@@ -12,7 +12,7 @@ describe('AsyncOption', () => {
1212
// TODO for now, if a class extends from another class.
1313
// the original methods in that class will be lost.
1414

15-
// await option.parallelApply(1, 2)
15+
await option.parallelApply(1, 2)
1616
// expect(handler1.mock.calls).toHaveLength(1)
1717
// expect(handler2.mock.calls).toHaveLength(1)
1818
// expect(handler1.mock.calls[0][0]).toBe(1)
File renamed without changes.

0 commit comments

Comments
 (0)