Skip to content

Commit

Permalink
Merge pull request #23 from igorgoncalves/fix-restaurant
Browse files Browse the repository at this point in the history
Chaged the regex for restaurant name
  • Loading branch information
drager committed Oct 27, 2020
2 parents 6aa3d62 + 87e7b3f commit ce035b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/specs/food.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import 'package:test/test.dart';
import 'package:faker/faker.dart';

import 'package:faker/src/data/food/restaurants.dart';

void main() {
var faker = Faker();

group('food', () {
group('food', () {
test('should be able to generate restaurant', () {
expect(faker.food.restaurant(), matches(RegExp(r"^([\w\s\'-])+$")));
expect(faker.food.restaurant(), matches(RegExp(r"^([\w\s\&\/\,\.\ö\’\'-])+$")));
});

test('should be able to generate dish', () {
Expand Down

0 comments on commit ce035b7

Please sign in to comment.