feat: integrate user usage into apis (#5075)

This commit is contained in:
DarkSky
2023-12-14 09:50:36 +00:00
parent 63de73a815
commit ad23ead5e4
36 changed files with 984 additions and 282 deletions
+8
View File
@@ -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');
});
});