Skip to content

Commit

Permalink
Naming
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Jul 11, 2024
1 parent f2a8cc2 commit aefcdf0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/analyze.test.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { describe, it, expect } from 'vitest';
import { dedent } from 'ts-dedent';
import { extractImports, analyze } from './analyze';

import { parse } from 'meriyah';

export const babelParse = (code: string) => parse(code, { module: true, jsx: true });
import { extractImports, analyze } from './analyze';

export const estreeParse = (code: string) => parse(code, { module: true, jsx: true });

describe('extractImports', () => {
it('single block', () => {
const ast = babelParse(dedent`
const ast = estreeParse(dedent`
import { Meta } from '@storybook/blocks';
import * as ButtonStories from './Button.stories';
`);
Expand All @@ -21,7 +21,7 @@ describe('extractImports', () => {
});

it('multiple blocks', () => {
const ast = babelParse(dedent`
const ast = estreeParse(dedent`
import { Meta } from '@storybook/blocks';
import * as ButtonStories from './Button.stories';
Expand Down

0 comments on commit aefcdf0

Please sign in to comment.