From e97106d6ef3538eaffc8640841de9b68f8d78fff Mon Sep 17 00:00:00 2001 From: thosakwe Date: Sun, 18 Dec 2016 23:51:21 -0500 Subject: [PATCH] :) --- lib/src/client.dart | 2 +- pubspec.yaml | 2 +- test/simple_test.dart | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index 5f270461..14321bc2 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -8,7 +8,7 @@ import 'package:uuid/uuid.dart'; final Uuid _uuid = new Uuid(); Future connectTo(Angel app, - {Map initialSession, bool saveSession: true}) async { + {Map initialSession, bool saveSession: false}) async { TestClient client; var path = '/${_uuid.v1()}/${_uuid.v1()}/${_uuid.v1()}'; diff --git a/pubspec.yaml b/pubspec.yaml index 8c9ad4ab..2ef8d6f4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ author: "Tobe O " description: "Testing utility library for the Angel framework." homepage: "https://github.com/angel-dart/test.git" name: "angel_test" -version: "1.0.0-dev" +version: "1.0.0-dev+1" dependencies: angel_client: "^1.0.0-dev+16" angel_framework: "^1.0.0-dev" diff --git a/test/simple_test.dart b/test/simple_test.dart index e02020b2..e26f6591 100644 --- a/test/simple_test.dart +++ b/test/simple_test.dart @@ -35,19 +35,20 @@ main() { group('session', () { test('initial session', () async { - final TestClient client = - await connectTo(app, initialSession: {'foo': 'bar'}); + final TestClient client = await connectTo(app, + initialSession: {'foo': 'bar'}, saveSession: true); expect(client.session['foo'], equals('bar')); }); test('add to session', () async { - final TestClient client = await connectTo(app); + final TestClient client = await connectTo(app, saveSession: true); await client.addToSession({'michael': 'jackson'}); expect(client.session['michael'], equals('jackson')); }); test('remove from session', () async { - final TestClient client = await connectTo(app, initialSession: {'angel': 'framework'}); + final TestClient client = await connectTo(app, + initialSession: {'angel': 'framework'}, saveSession: true); await client.removeFromSession(['angel']); expect(client.session.containsKey('angel'), isFalse); });