Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
francisli committed Mar 29, 2024
1 parent 2e9281f commit d36522f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 48 deletions.
5 changes: 0 additions & 5 deletions server/routes/example/index.js

This file was deleted.

25 changes: 0 additions & 25 deletions server/test/plugins/support.test.js

This file was deleted.

12 changes: 0 additions & 12 deletions server/test/routes/example.test.js

This file was deleted.

19 changes: 13 additions & 6 deletions server/test/routes/root.test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import { test } from 'node:test';
import { describe, it } from 'node:test';
import * as assert from 'node:assert';
import { StatusCodes } from 'http-status-codes';

import { build } from '../helper.js';

test('default root route', async (t) => {
const app = await build(t);
describe('/', () => {
describe('GET /health', () => {
it('returns ok when the server is up and running', async (t) => {
const app = await build(t);

const res = await app.inject({
url: '/health',
const res = await app.inject({
url: '/health',
});
assert.deepStrictEqual(res.statusCode, StatusCodes.OK);
assert.deepStrictEqual(JSON.parse(res.payload), { status: 'OK' });
});
});
assert.deepStrictEqual(JSON.parse(res.payload), { status: 'OK' });
});

0 comments on commit d36522f

Please sign in to comment.