test(server): omit owner before create (#11059)

This commit is contained in:
fengmk2
2025-03-24 03:32:24 +00:00
parent 28f8639aff
commit d62c8642fb
2 changed files with 14 additions and 2 deletions
@@ -1,5 +1,6 @@
import { getCurrentUserQuery } from '@affine/graphql';
import { Mockers } from '../mocks';
import { app, e2e } from './test';
e2e('should create test app correctly', async t => {
@@ -16,3 +17,11 @@ e2e('should handle gql request', async t => {
const user = await app.gql({ query: getCurrentUserQuery });
t.is(user.currentUser, null);
});
e2e('should create workspace with owner', async t => {
const user = await app.signup();
const workspace = await app.create(Mockers.Workspace, {
owner: { id: user.id },
});
t.truthy(workspace);
});