You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
573 B
18 lines
573 B
import { ChatMessage } from '../interfaces/chat-message.model'; |
|
import { ChatStaticService, UserRegistrationResponse } from './chat-service'; |
|
|
|
export const chatServiceMockOf = ( |
|
chatHistory: ChatMessage[], |
|
userRegistrationResponse: UserRegistrationResponse, |
|
): ChatStaticService => |
|
class ChatServiceMock { |
|
public static async getChatHistory(): Promise<ChatMessage[]> { |
|
return chatHistory; |
|
} |
|
|
|
public static async registerUser(): Promise<UserRegistrationResponse> { |
|
return userRegistrationResponse; |
|
} |
|
}; |
|
|
|
export default chatServiceMockOf;
|
|
|