This commit is contained in:
thosakwe 2016-12-03 12:45:40 -05:00
parent 84e63e8dc6
commit c6e17a7969
6 changed files with 12 additions and 4 deletions

View file

@ -0,0 +1,7 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="All Tests" type="DartTestRunConfigurationType" factoryName="Dart Test" singleton="true">
<option name="filePath" value="$PROJECT_DIR$/test" />
<option name="scope" value="FOLDER" />
<method />
</configuration>
</component>

View file

@ -1,6 +1,6 @@
# angel_mongo # angel_mongo
![version 1.0.0-dev+4](https://img.shields.io/badge/version-1.0.0--dev+4-red.svg) ![version 1.0.0-dev+5](https://img.shields.io/badge/version-1.0.0--dev+5-red.svg)
![build status](https://travis-ci.org/angel-dart/mongo.svg?branch=master) ![build status](https://travis-ci.org/angel-dart/mongo.svg?branch=master)
MongoDB-enabled services for the Angel framework. MongoDB-enabled services for the Angel framework.

View file

@ -132,7 +132,7 @@ class MongoTypedService<T> extends Service {
@override @override
Future remove(id, [Map params]) async { Future remove(id, [Map params]) async {
Map result = await read(id, params); var result = await read(id, params);
try { try {
await collection.remove(where.id(_makeId(id)).and(_makeQuery(params))); await collection.remove(where.id(_makeId(id)).and(_makeQuery(params)));

View file

@ -1,5 +1,5 @@
name: angel_mongo name: angel_mongo
version: 1.0.0-dev+4 version: 1.0.0-dev+5
description: MongoDB-enabled services for the Angel framework. description: MongoDB-enabled services for the Angel framework.
author: Tobe O <thosakwe@gmail.com> author: Tobe O <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/angel_mongo homepage: https://github.com/angel-dart/angel_mongo

View file

@ -1 +0,0 @@
../packages

View file

@ -151,8 +151,10 @@ main() {
await Greetings.create(new Greeting(to: "Bernie Sanders")); await Greetings.create(new Greeting(to: "Bernie Sanders"));
lastCount = (await Greetings.index()).length; lastCount = (await Greetings.index()).length;
print('b');
await Greetings.remove(bernie.id); await Greetings.remove(bernie.id);
expect((await Greetings.index()).length, equals(lastCount - 1)); expect((await Greetings.index()).length, equals(lastCount - 1));
print('c');
}); });
test('\$sort and query parameters', () async { test('\$sort and query parameters', () async {