Skip to content

Commit

Permalink
quick dir fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZinxValkyria committed May 31, 2024
1 parent 6266a70 commit d3588cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion __tests__/test.test.js
Original file line number Diff line number Diff line change
@@ -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 () => {
Expand Down
12 changes: 0 additions & 12 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d3588cc

Please sign in to comment.