Update test boilerplate
This commit is contained in:
parent
ea44b4a7fd
commit
7bb3286442
1 changed files with 3 additions and 2 deletions
|
@ -84,7 +84,7 @@ class TestCommand extends Command {
|
||||||
String _generateTest(Pubspec pubspec, ReCase rc) {
|
String _generateTest(Pubspec pubspec, ReCase rc) {
|
||||||
return '''
|
return '''
|
||||||
import 'dart:io';
|
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_framework/angel_framework.dart';
|
||||||
import 'package:angel_test/angel_test.dart';
|
import 'package:angel_test/angel_test.dart';
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
@ -93,7 +93,8 @@ main() async {
|
||||||
TestClient client;
|
TestClient client;
|
||||||
|
|
||||||
setUp(() async {
|
setUp(() async {
|
||||||
var app = await createServer();
|
var app = new Angel();
|
||||||
|
await app.configure(${pubspec.name}.configureServer);
|
||||||
client = await connectTo(app);
|
client = await connectTo(app);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue