mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-01 01:29:31 +08:00
feat: integrate user usage into apis (#5075)
This commit is contained in:
@@ -45,6 +45,13 @@ class FakePrisma {
|
||||
},
|
||||
};
|
||||
}
|
||||
get newFeaturesWaitingList() {
|
||||
return {
|
||||
async findUnique() {
|
||||
return null;
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
test.beforeEach(async t => {
|
||||
@@ -119,6 +126,7 @@ test('should find default user', async t => {
|
||||
})
|
||||
.expect(200)
|
||||
.expect(res => {
|
||||
console.log(res.body);
|
||||
t.is(res.body.data.user.email, 'alex.yang@example.org');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user