Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Internal: cleanup test fixtures #572

@hzoo

Description

@hzoo

Looking at these tests: https://github.com/babel/babel-eslint/blob/master/test/non-regression.js

  it("exportNamespaceFrom", () => {
    verifyAndAssertMessages(
      unpad(`
        export * as ns from "mod"
      `),
      {},
      []
    );
  });

We should just default to using unpad and the 2nd and 3rd params should default to {} and [] so you can just do

  it("exportNamespaceFrom", () => {
    verifyAndAssertMessages(`
      export * as ns from "mod"
    );
  });

Or simplify it even more?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions