Skip to content

Commit

Permalink
fix: mapReduce test pending
Browse files Browse the repository at this point in the history
  • Loading branch information
RagibHasin committed May 18, 2017
1 parent 84cd189 commit 4cc024c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/MapReduce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ describe("Model", () => {

it("should correctly map and reduce with model", () => {
let reducedModel = new Iridium.Model<Iridium.MapReducedDocument<string, number>, MapReducedInstance>(core, MapReducedInstance);
reducedModel.remove()
let t = model.mapReduce(MapReducedInstance, {
let t = reducedModel.remove().then(() => model.mapReduce(MapReducedInstance, {
out: "replace", query: { status: "A" }
}).then(() => reducedModel.find().toArray())
}).then(() => reducedModel.find().toArray()))
return chai.expect(t).to.eventually.exist.and.have.length(2);
});

Expand Down

0 comments on commit 4cc024c

Please sign in to comment.