platform/test/view_generator_test.dart

12 lines
362 B
Dart
Raw Normal View History

2018-08-19 15:33:25 +00:00
import 'package:angel_container/mirrors.dart';
2017-06-29 22:17:42 +00:00
import 'package:angel_framework/angel_framework.dart';
import 'package:test/test.dart';
main() {
test('default view generator', () async {
2018-08-20 02:40:11 +00:00
var app = new Angel(reflector: MirrorsReflector());
2017-06-29 22:17:42 +00:00
var view = await app.viewGenerator('foo', {'bar': 'baz'});
expect(view, contains('No view engine'));
});
2017-09-22 14:03:23 +00:00
}