diff --git a/packages/umi-plugin-mana/src/index.spec.ts b/packages/umi-plugin-mana/src/index.spec.ts index 33360f7..29a5844 100644 --- a/packages/umi-plugin-mana/src/index.spec.ts +++ b/packages/umi-plugin-mana/src/index.spec.ts @@ -1,7 +1,26 @@ import assert from 'assert'; +import { pageContent } from './mana-runtime'; + describe('umi-plugin-mana', () => { - it('#base', async () => { - assert(true); + it('#page content', async () => { + assert( + pageContent('my-slot') === + `(async () => { +const { Slot } = await import('@difizen/mana-app'); +const { Outlet } = await import('umi'); + +const Page = ({ children, ...props }) => { + return ( + + + + ); +}; + +return Page +})() +`, + ); }); });