import globalThis from 'global';
import { expect } from '@storybook/jest';
import { PlayFunctionContext } from '@storybook/csf';

export default {
  component: globalThis.Components.Pre,
  args: { text: 'No content' },
};

export const Default = {
  play: async ({ title }: PlayFunctionContext) => {
    await expect(title).toBe('lib/store/autotitle');
  },
};
