Skip to content

Commit ba9596d

Browse files
committed
test: asyncToGenerator is no longer used in async/await transformation
See babel/babel#9481
1 parent 84aed8e commit ba9596d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/@vue/babel-preset-app/__tests__/babel-preset.spec.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ test('async/await', () => {
106106
expect(code).toMatch(getAbsolutePolyfill('es.promise'))
107107
// should use regenerator runtime
108108
expect(code).toMatch(`"regenerator-runtime/runtime"`)
109-
// should use required helper instead of inline
110-
expect(code).toMatch(/".*runtime\/helpers\/asyncToGenerator\"/)
111109
})
112110

113111
test('jsx', () => {
@@ -158,7 +156,6 @@ test('disable absoluteRuntime', () => {
158156
})
159157

160158
test('should inject polyfills / helpers using "require" statements for a umd module', () => {
161-
// TODO:
162159
const { code } = babel.transformSync(`
163160
(function (global, factory) {
164161
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :

0 commit comments

Comments
 (0)