test: account for new Route.method in blade route-registry assertion

The routes phase now persists httpMethod onto RouteEntry/Route nodes, so
the strict toEqual on the framework-route registry entry must include the
new method field.
This commit is contained in:
henry 2026-06-17 20:01:44 +08:00
parent 4e0070612a
commit 517910f6da

View file

@ -146,6 +146,7 @@ describe('Blade/template static route extraction', () => {
expect(output.routeRegistry.get('/admin/orders')).toEqual({
filePath: 'routes/web.php',
source: 'framework-route',
method: 'post',
});
const fetchEdges = graph.relationships.filter((rel) => rel.type === 'FETCHES');