1
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-04-11 15:43:32 +08:00
parent f19e482c8f
commit 0981d6ee1b
78 changed files with 1102 additions and 8510 deletions

View File

@@ -9,24 +9,15 @@ describe('matchAppRoute', () => {
});
});
it('routes item editor paths to the preset editor items tab', () => {
it('routes deprecated editor paths back to the main game', () => {
expect(matchAppRoute('/item-editor/tools')).toEqual({
kind: 'preset-editor',
initialTab: 'items',
kind: 'game',
});
});
it('routes behavior editor paths to the functions tab', () => {
expect(matchAppRoute('/behavior-editor')).toEqual({
kind: 'preset-editor',
initialTab: 'functions',
kind: 'game',
});
});
it('accepts nested preset editor paths with trailing slashes', () => {
expect(matchAppRoute('/NPC-EDITOR/profiles/')).toEqual({
kind: 'preset-editor',
initialTab: 'npcs',
kind: 'game',
});
});
@@ -35,4 +26,10 @@ describe('matchAppRoute', () => {
kind: 'game',
});
});
it('keeps the sprite tool route', () => {
expect(matchAppRoute('/sprite-tool')).toEqual({
kind: 'qwen-sprite-tool',
});
});
});