22
This commit is contained in:
parent
1984839af5
commit
05c79d1660
3 changed files with 6 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
# angel_client
|
# angel_client
|
||||||
|
|
||||||
[![pub 1.0.0-dev+21](https://img.shields.io/badge/pub-1.0.0--dev+21-red.svg)](https://pub.dartlang.org/packages/angel_client)
|
[![pub 1.0.0-dev+22](https://img.shields.io/badge/pub-1.0.0--dev+22-red.svg)](https://pub.dartlang.org/packages/angel_client)
|
||||||
![build status](https://travis-ci.org/angel-dart/client.svg)
|
![build status](https://travis-ci.org/angel-dart/client.svg)
|
||||||
|
|
||||||
Client library for the Angel framework.
|
Client library for the Angel framework.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel_client
|
name: angel_client
|
||||||
version: 1.0.0-dev+21
|
version: 1.0.0-dev+22
|
||||||
description: Client library for the Angel framework.
|
description: Client library for the Angel framework.
|
||||||
author: Tobe O <thosakwe@gmail.com>
|
author: Tobe O <thosakwe@gmail.com>
|
||||||
homepage: https://github.com/angel-dart/angel_client
|
homepage: https://github.com/angel-dart/angel_client
|
||||||
|
|
|
@ -39,7 +39,7 @@ main() {
|
||||||
test("index", () async {
|
test("index", () async {
|
||||||
Postcard niagaraFalls = await serverPostcards.create(
|
Postcard niagaraFalls = await serverPostcards.create(
|
||||||
new Postcard(location: "Niagara Falls", message: "Missing you!"));
|
new Postcard(location: "Niagara Falls", message: "Missing you!"));
|
||||||
print('Niagra Falls: ${niagaraFalls.toJson()}');
|
print('Niagara Falls: ${niagaraFalls.toJson()}');
|
||||||
|
|
||||||
List indexed = await clientPostcards.index();
|
List indexed = await clientPostcards.index();
|
||||||
print(indexed);
|
print(indexed);
|
||||||
|
@ -53,7 +53,7 @@ main() {
|
||||||
Postcard louvre = await serverPostcards.create(new Postcard(
|
Postcard louvre = await serverPostcards.create(new Postcard(
|
||||||
location: "The Louvre", message: "The Mona Lisa was watching me!"));
|
location: "The Louvre", message: "The Mona Lisa was watching me!"));
|
||||||
print(god.serialize(louvre));
|
print(god.serialize(louvre));
|
||||||
List<Postcard> typedIndexed = await clientTypedPostcards.index();
|
List typedIndexed = await clientTypedPostcards.index();
|
||||||
expect(typedIndexed.length, equals(2));
|
expect(typedIndexed.length, equals(2));
|
||||||
expect(typedIndexed[1], equals(louvre));
|
expect(typedIndexed[1], equals(louvre));
|
||||||
},
|
},
|
||||||
|
@ -92,7 +92,8 @@ main() {
|
||||||
});
|
});
|
||||||
|
|
||||||
test("modify/update", () async {
|
test("modify/update", () async {
|
||||||
server.MemoryService<Postcard> innerPostcards = serverPostcards.inner;
|
var innerPostcards =
|
||||||
|
serverPostcards.inner as server.MemoryService<Postcard>;
|
||||||
print(innerPostcards.items);
|
print(innerPostcards.items);
|
||||||
Postcard mecca = await clientTypedPostcards
|
Postcard mecca = await clientTypedPostcards
|
||||||
.create(new Postcard(location: "Mecca", message: "Pilgrimage"));
|
.create(new Postcard(location: "Mecca", message: "Pilgrimage"));
|
||||||
|
|
Loading…
Reference in a new issue