Skip to content

Commit

Permalink
Improve echo
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyGuthridge committed Dec 26, 2023
1 parent 12e3544 commit 1f1b533
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ debug.delete('/clear', (req, res) => {

debug.get('/echo', (req, res) => {
const { value } = req.query;
console.log(`[ ECHO ] ${value}`);
console.log(`\n!!! [ ECHO ] ${value}\n`);
res.json({ value });
});

Expand Down
5 changes: 4 additions & 1 deletion tests/project/details.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { Token } from '../../src/types/user';
import api from '../api';
import { makeProject, makeTask, makeUser } from '../helpers';

beforeEach(api.debug.clear);
beforeEach(() => {
api.debug.clear();

Check failure on line 7 in tests/project/details.test.ts

View workflow job for this annotation

GitHub Actions / lint

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
api.debug.echo(expect.getState().currentTestName || 'Test not running');

Check failure on line 8 in tests/project/details.test.ts

View workflow job for this annotation

GitHub Actions / lint

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
});

describe('/project/details', () => {
it('gets the details of existing projects', async () => {
Expand Down

0 comments on commit 1f1b533

Please sign in to comment.