mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 09:36:17 +08:00
test(server): omit owner before create (#11059)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user