Skip to content

Commit 40181fa

Browse files
committed
refactor: rename Application to Hoa
1 parent e3e8c94 commit 40181fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+159
-237
lines changed

__test__/application/extend.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Hoa from '../../src/application.js'
1+
import Hoa from '../../src/hoa.js'
22

33
/**
44
* Simple EJS-like template engine for testing purposes

__test__/application/fetch.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Hoa from '../../src/application.js'
1+
import Hoa from '../../src/hoa.js'
22

33
describe('app.fetch(request, env, ctx)', () => {
44
it('should compose once and reuse cached middleware on subsequent fetch calls', async () => {

__test__/application/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Hoa from '../../src/application.js'
1+
import Hoa from '../../src/hoa.js'
22

33
describe('app', () => {
44
it('should initialize with correct defaults', () => {

__test__/application/onerror.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Hoa from '../../src/application.js'
1+
import Hoa from '../../src/hoa.js'
22

33
describe('app.onerror(err, ctx)', () => {
44
it('should throw TypeError for non-error values', () => {

__test__/application/request.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Hoa from '../../src/application.js'
1+
import Hoa from '../../src/hoa.js'
22

33
describe('app.HoaRequest', () => {
44
it('should support extending with properties and methods', async () => {

__test__/application/respond.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Hoa from '../../src/application.js'
1+
import Hoa from '../../src/hoa.js'
22

33
describe('app respond', () => {
44
describe('when no middleware is present', () => {

__test__/application/response.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Hoa from '../../src/application.js'
1+
import Hoa from '../../src/hoa.js'
22

33
describe('app.HoaResponse', () => {
44
it('should support extending with properties and methods', async () => {

__test__/application/toJSON.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Hoa from '../../src/application.js'
1+
import Hoa from '../../src/hoa.js'
22

33
describe('app.toJSON()', () => {
44
it('should return app name', () => {

__test__/application/use.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Hoa from '../../src/application.js'
1+
import Hoa from '../../src/hoa.js'
22

33
describe('app.use(fn)', () => {
44
it('should compose middleware', async () => {

__test__/context/assert.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Hoa from '../../src/application.js'
1+
import Hoa from '../../src/hoa.js'
22

33
describe('ctx.assert(value, status, message)', () => {
44
it('should throw an error for falsy values', () => {

0 commit comments

Comments
 (0)