From d3588ccb3c7e01f922fa4975161af2d20ea41391 Mon Sep 17 00:00:00 2001 From: Blain Date: Fri, 31 May 2024 13:55:41 +0100 Subject: [PATCH] quick dir fix --- __tests__/test.test.js | 2 +- app.js | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/__tests__/test.test.js b/__tests__/test.test.js index d03dc26..911475e 100644 --- a/__tests__/test.test.js +++ b/__tests__/test.test.js @@ -1,5 +1,5 @@ const request = require('supertest'); -const app = require('./app'); +const app = require('../app'); describe('GET /', () => { test('It should respond with status 200 and render index page', async () => { diff --git a/app.js b/app.js index fd5efb3..2cc0b7e 100644 --- a/app.js +++ b/app.js @@ -3,18 +3,6 @@ const axios = require('axios'); const crypto = require('crypto'); const ejs = require('ejs'); const path = require('path'); -const request = require('supertest'); -const app = require('../app'); // Adjust the path based on your directory structure - -describe('GET /', () => { - test('It should respond with status 200 and render index page', async () => { - const response = await request(app).get('/'); - expect(response.status).toBe(200); - expect(response.text).toContain('index'); - }); -}); - -// Add more tests for other routes... const app = express();