mirror of
https://github.com/Permissionless-Software-Foundation/x402-base-facilitator.git
synced 2026-09-21 16:52:01 -07:00
43 lines
597 B
JavaScript
43 lines
597 B
JavaScript
/*
|
|
Mocks for the use cases.
|
|
*/
|
|
/* eslint-disable */
|
|
|
|
class UserUseCaseMock {
|
|
async createUser(userObj) {
|
|
return {}
|
|
}
|
|
|
|
async getAllUsers() {
|
|
return true
|
|
}
|
|
|
|
async getUser(params) {
|
|
return true
|
|
}
|
|
|
|
async updateUser(existingUser, newData) {
|
|
return true
|
|
}
|
|
|
|
async deleteUser(user) {
|
|
return true
|
|
}
|
|
|
|
async authUser(login, passwd) {
|
|
return {
|
|
generateToken: () => {}
|
|
}
|
|
}
|
|
}
|
|
|
|
class UseCasesMock {
|
|
constuctor(localConfig = {}) {
|
|
// this.user = new UserUseCaseMock(localConfig)
|
|
}
|
|
|
|
user = new UserUseCaseMock()
|
|
}
|
|
|
|
export default UseCasesMock;
|