Commit 52c4198
Test relation-type trimming in RelationAttributesEditor
The editor trims the relation type before emitting and treats a
whitespace-only value as empty (required error, no emit), but no test
exercised the trimming, so dropping the trim would slip through. Add
coverage for padded and whitespace-only input; both fail if the trim
is removed.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 9e42559 commit 52c4198
1 file changed
Lines changed: 19 additions & 0 deletions
File tree
- resources/ext.neowiki/tests/components/SchemaEditor/Property
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
110 | 118 | | |
111 | 119 | | |
112 | 120 | | |
| |||
143 | 151 | | |
144 | 152 | | |
145 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
146 | 165 | | |
147 | 166 | | |
148 | 167 | | |
| |||
0 commit comments