Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Jul 9, 2020
1 parent d60807a commit f9adc93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/command/indexes.rs
Expand Up @@ -49,7 +49,9 @@ pub fn create_indexes(command: Command) -> util::AsyncJsonOp<Vec<String>> {
let database = client.database(&db_name);
let collection = database.collection(&collection_name);

let result = collection.create_indexes(models).map_err(|e| e.to_string())?;
let result = collection
.create_indexes(models)
.map_err(|e| e.to_string())?;
Ok(result)
};
fut.boxed()
Expand Down
6 changes: 3 additions & 3 deletions test.ts
Expand Up @@ -85,7 +85,7 @@ test("testInsertOneTwice", async () => {
username: "user1",
}),
undefined,
"E11000"
"E11000",
);
});

Expand Down Expand Up @@ -136,7 +136,7 @@ test("testFind", async () => {
const users = db.collection("mongo_test_users");
const findUsers = await users.find(
{ username: "many" },
{ skip: 1, limit: 1 }
{ skip: 1, limit: 1 },
);
assert(findUsers instanceof Array);
assertEquals(findUsers.length, 1);
Expand Down Expand Up @@ -167,7 +167,7 @@ test("testUpdateMany", async () => {
const users = db.collection("mongo_test_users");
const result = await users.updateMany(
{ username: "many" },
{ $set: { username: "MANY" } }
{ $set: { username: "MANY" } },
);
assertEquals(result, { matchedCount: 2, modifiedCount: 2, upsertedId: null });
});
Expand Down

0 comments on commit f9adc93

Please sign in to comment.