Skip to content

Commit

Permalink
test fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
anidotnet committed Dec 19, 2023
1 parent 60329ed commit bbbcdb0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:convert';
import 'dart:math';

import 'package:faker/faker.dart';

import 'test_objects.dart' as obj;
import 'test_objects_decorators.dart';

Expand Down Expand Up @@ -41,7 +42,7 @@ obj.Employee generateEmployee(obj.Company? company) {
empId: DateTime.now().millisecondsSinceEpoch + counter++,
joinDate: faker.date.dateTime(),
address: faker.address.streetAddress(),
emailAddress: faker.internet.email(),
emailAddress: faker.internet.safeEmail(),
blob: utf8.encode(faker.lorem.sentence()),
company: company,
employeeNote: generateNote());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'package:nitrite/nitrite.dart';
import 'package:test/test.dart';

import '../../test_utils.dart';
import '../string_field_encryption_processor.dart';
import 'base_collection_test_loader.dart';

void main() {
Expand Down Expand Up @@ -426,11 +425,6 @@ void main() {
var collection = await db.getCollection('person');
await collection.insertMany([doc1, doc2]);

var processor = StringFieldEncryptionProcessor();
processor.addFields(['name']);
await processor.process(collection);
await collection.addProcessor(processor);

var projection = emptyDocument()
..put('name', null)
..put('address.city', null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:convert';
import 'dart:math';

import 'package:faker/faker.dart';

import 'test_objects.dart' as obj;
import 'test_objects_decorators.dart';

Expand Down Expand Up @@ -41,7 +42,7 @@ obj.Employee generateEmployee(obj.Company? company) {
empId: DateTime.now().millisecondsSinceEpoch + counter++,
joinDate: faker.date.dateTime(),
address: faker.address.streetAddress(),
emailAddress: faker.internet.email(),
emailAddress: faker.internet.safeEmail(),
blob: utf8.encode(faker.lorem.sentence()),
company: company,
employeeNote: generateNote());
Expand Down

0 comments on commit bbbcdb0

Please sign in to comment.