Update test boilerplate

This commit is contained in:
Tobe O 2018-07-14 19:16:18 -04:00
parent ea44b4a7fd
commit 7bb3286442

View file

@ -84,7 +84,7 @@ class TestCommand extends Command {
String _generateTest(Pubspec pubspec, ReCase rc) {
return '''
import 'dart:io';
import 'package:${pubspec.name}/${pubspec.name}.dart';
import 'package:${pubspec.name}/${pubspec.name}.dart' as ${pubspec.name};
import 'package:angel_framework/angel_framework.dart';
import 'package:angel_test/angel_test.dart';
import 'package:test/test.dart';
@ -93,7 +93,8 @@ main() async {
TestClient client;
setUp(() async {
var app = await createServer();
var app = new Angel();
await app.configure(${pubspec.name}.configureServer);
client = await connectTo(app);
});