Cambia mensajes de Hello World (Distingue Front y Back)

pull/2/head
DavidPerea 2024-11-10 20:37:35 +01:00
parent f651d3a010
commit 29dd826ee3
4 changed files with 5 additions and 5 deletions

View File

@ -15,8 +15,8 @@ describe('AppController', () => {
}); });
describe('root', () => { describe('root', () => {
it('should return "Hello World!"', () => { it('should return "Hello World! Back"', () => {
expect(appController.getHello()).toBe('Hello World!'); expect(appController.getHello()).toBe('Hello World! Back');
}); });
}); });
}); });

View File

@ -3,6 +3,6 @@ import { Injectable } from '@nestjs/common';
@Injectable() @Injectable()
export class AppService { export class AppService {
getHello(): string { getHello(): string {
return 'Hello World!'; return 'Hello World! Back';
} }
} }

View File

@ -4,5 +4,5 @@ import App from './App';
test('Renders hello world', () => { test('Renders hello world', () => {
render(<App />); render(<App />);
expect(screen.getByText("Hello world")).toBeInTheDocument(); expect(screen.getByText("Hello World! Front")).toBeInTheDocument();
}); });

View File

@ -4,7 +4,7 @@ function App() {
return ( return (
<div className="App"> <div className="App">
<header className="App-header"> <header className="App-header">
Hello world Hello World! Front
</header> </header>
</div> </div>
); );