chore: run format and lint

This commit is contained in:
Stevan Freeborn
2025-05-24 22:29:46 -05:00
parent a8145ff5bb
commit 00b3b83074
4 changed files with 43 additions and 41 deletions
+3 -4
View File
@@ -48,7 +48,7 @@ describe('injectServices', () => {
describe('useService', () => {
test('it should throw an error if the service scope is not found in context', async () => {
type ITestService = object;
const serviceId = createServiceIdentifier<ITestService>();
const app = new Hono<Env>();
@@ -68,13 +68,13 @@ describe('useService', () => {
test('it should throw an error if the service scope is not an instance of ServiceScope', async () => {
type ITestService = object;
const serviceId = createServiceIdentifier<ITestService>();
const app = new Hono<Env>();
app.get('/', c => {
c.set('serviceScope', {} as IServiceScope);
try {
useService(c, serviceId);
return c.text('Service scope found', 200);
@@ -115,7 +115,6 @@ describe('useService', () => {
expect(res.status).toBe(500);
});
test('it should return the service from the service scope', async () => {
interface ITestService {
id(): string;