Skip to content

Commit

Permalink
update root spec test file to test availableEndpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuel-musau committed Feb 25, 2025
1 parent fa73e10 commit b10e35d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions backend/src/app.controller.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Test, TestingModule } from '@nestjs/testing';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { Test, TestingModule } from "@nestjs/testing";
import { AppController } from "./app.controller";
import { AppService } from "./app.service";

describe('AppController', () => {
describe("AppController", () => {
let appController: AppController;

beforeEach(async () => {
Expand All @@ -14,9 +14,10 @@ describe('AppController', () => {
appController = app.get<AppController>(AppController);
});

describe('root', () => {
it('should return "Hello World!"', () => {
expect(appController.getHello()).toBe('Hello World!');
describe("root", () => {
it("should return something", () => {
const result = appController.availableEndpoints();
expect(result).toBeDefined();
});
});
});

0 comments on commit b10e35d

Please sign in to comment.