Add projects
This commit is contained in:
parent
2d3a9ad623
commit
8b607dd700
1802 changed files with 503346 additions and 2 deletions
10
frontend/tests/modelAliasValidation.test.ts
Normal file
10
frontend/tests/modelAliasValidation.test.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { describe, expect, test } from 'vitest';
|
||||
import { hasModelAliasConflict } from '../src/components/modelAlias/aliasValidation';
|
||||
|
||||
describe('model alias validation', () => {
|
||||
test('checks aliases case-insensitively while excluding the renamed node', () => {
|
||||
expect(hasModelAliasConflict(['Foo'], ' foo ')).toBe(true);
|
||||
expect(hasModelAliasConflict(['Foo'], 'foo', 'Foo')).toBe(false);
|
||||
expect(hasModelAliasConflict(['Foo', 'Bar'], 'FOO', 'Bar')).toBe(true);
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue