mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-06 02:49:56 +00:00
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:
parent
4e0070612a
commit
517910f6da
1 changed files with 1 additions and 0 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue