Skip to content

Commit

Permalink
Fix realm generator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Jan 4, 2024
1 parent 4909639 commit 8e85d9c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion generator/test/good_test_data/map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'dart:typed_data';

import 'package:realm_common/realm_common.dart';

//part 'map.g.dart';
part 'map.realm.dart';

@RealmModel()
class _LotsOfMaps {
Expand Down
6 changes: 6 additions & 0 deletions generator/test/good_test_data/map.expected
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'map.dart';

// **************************************************************************
// RealmObjectGenerator
// **************************************************************************

// ignore_for_file: type=lint
class LotsOfMaps extends _LotsOfMaps
with RealmEntity, RealmObjectBase, RealmObject {
@ejson
LotsOfMaps({
Map<String, Person?> persons = const {},
Map<String, bool> bools = const {},
Expand Down Expand Up @@ -166,6 +171,7 @@ class LotsOfMaps extends _LotsOfMaps
}

class Person extends _Person with RealmEntity, RealmObjectBase, RealmObject {
@ejson
Person(
String name,
) {
Expand Down
2 changes: 2 additions & 0 deletions generator/test/good_test_data/map.realm.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// MOCK FILE!
part of 'map.dart';

0 comments on commit 8e85d9c

Please sign in to comment.