Skip to content

Commit

Permalink
test: asyncToGenerator is no longer used in async/await transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Nov 26, 2019
1 parent 84aed8e commit ba9596d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/@vue/babel-preset-app/__tests__/babel-preset.spec.js
Expand Up @@ -106,8 +106,6 @@ test('async/await', () => {
expect(code).toMatch(getAbsolutePolyfill('es.promise'))
// should use regenerator runtime
expect(code).toMatch(`"regenerator-runtime/runtime"`)
// should use required helper instead of inline
expect(code).toMatch(/".*runtime\/helpers\/asyncToGenerator\"/)
})

test('jsx', () => {
Expand Down Expand Up @@ -158,7 +156,6 @@ test('disable absoluteRuntime', () => {
})

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

0 comments on commit ba9596d

Please sign in to comment.