1.1.0-alpha

This commit is contained in:
Tobe O 2017-09-24 00:40:35 -04:00
parent d50e448c45
commit 8d3c08fb2d
5 changed files with 9 additions and 10 deletions

View file

@ -5,9 +5,7 @@
<excludeFolder url="file://$MODULE_DIR$/.pub" />
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/build" />
<excludeFolder url="file://$MODULE_DIR$/packages" />
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/test/packages" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />

View file

@ -25,7 +25,7 @@ Future<TestClient> connectTo(Angel app,
if (!app.isProduction)
app.properties.putIfAbsent('testMode', () => true);
for (var plugin in app.justBeforeStart)
for (var plugin in app.startupHooks)
await plugin(app);
return new TestClient(app, autoDecodeGzip: autoDecodeGzip != false)
..session.addAll(initialSession ?? {});

View file

@ -1,6 +1,6 @@
import 'dart:convert';
import 'dart:io';
import 'package:angel_framework/src/http/angel_http_exception.dart';
import 'package:angel_http_exception/angel_http_exception.dart';
import 'package:angel_validate/angel_validate.dart';
import 'package:http/http.dart' as http;
import 'package:matcher/matcher.dart';

View file

@ -2,12 +2,12 @@ author: "Tobe O <thosakwe@gmail.com>"
description: "Testing utility library for the Angel framework."
homepage: "https://github.com/angel-dart/test.git"
name: "angel_test"
version: 1.0.6
version: 1.1.0-alpha
dependencies:
angel_client: "^1.0.0"
angel_framework: "^1.0.0-dev"
angel_client: ^1.1.0-alpha
angel_framework: ^1.1.0-alpha
angel_validate: ^1.0.0
angel_websocket: ^1.0.0
angel_websocket: ^1.1.0-alpha
http: "^0.11.3+9"
matcher: "^0.12.0+2"
mock_request: ^1.0.0

View file

@ -44,8 +44,9 @@ main() {
],
create: (data, [params]) async => {'foo': 'bar'}));
var ws = new AngelWebSocket();
await app.configure(ws);
var ws = new AngelWebSocket(app);
await app.configure(ws.configureServer);
app.all('/ws', ws.handleRequest);
client = await connectTo(app);
});