@@ -168,20 +168,11 @@ void main() {
168168 expect (batch, isA <WriteBatch >());
169169 });
170170
171- // Regression test for https://github.com/invertase/dart_firebase_admin/issues/83
172- //
173- // Firestore allows '/' characters inside map *keys* (e.g. document
174- // reference paths stored as map keys). The SDK was incorrectly routing
175- // map keys through field-path validation, which rejects '/', causing an
176- // ArgumentError before any network call was made.
177- group ('map keys with "/" characters (issue #83)' , () {
178- late Firestore firestore;
179-
180- setUp (() {
181- firestore = Firestore (settings: const Settings (projectId: 'test' ));
182- });
183-
184- test ('set() should not throw for a map key containing "/"' , () {
171+ group ('set() with map keys containing "/"' , () {
172+ test ('accepts a top-level map value with "/" in key' , () {
173+ final firestore = Firestore (
174+ settings: const Settings (projectId: 'test' ),
175+ );
185176 final batch = firestore.batch ();
186177 final docRef = firestore.doc ('activities/new-activity' );
187178
@@ -194,7 +185,10 @@ void main() {
194185 );
195186 });
196187
197- test ('set() should not throw for nested maps with "/" in keys' , () {
188+ test ('accepts nested maps with "/" in keys' , () {
189+ final firestore = Firestore (
190+ settings: const Settings (projectId: 'test' ),
191+ );
198192 final batch = firestore.batch ();
199193 final docRef = firestore.doc ('col/doc' );
200194
0 commit comments