diff --git a/test/Model.js b/test/Model.js index 8e85f4b..1706b37 100644 --- a/test/Model.js +++ b/test/Model.js @@ -274,15 +274,60 @@ describe("Model", function () { }); }); describe("ensureIndexes", function () { - it("should exist"); + var model = new Iridium.Model(core, Test, 'test', { id: false, answer: Number }); + before(function () { + return core.connect().then(function () { return model.remove(); }).then(function () { return model.insert([ + { answer: 10 }, + { answer: 11 }, + { answer: 12 }, + { answer: 13 }, + { answer: 14 } + ]); }); + }); + after(function () { + return model.remove().then(function () { return model.dropIndexes(); }).then(function () { return core.close(); }); + }); + it("should exist", function () { + chai.expect(model.ensureIndices).to.exist.and.be.a('function'); + }); it("should configure all indexes defined in the model's options"); }); describe("dropIndex", function () { - it("should exist"); + var model = new Iridium.Model(core, Test, 'test', { id: false, answer: Number }); + before(function () { + return core.connect().then(function () { return model.remove(); }).then(function () { return model.insert([ + { answer: 10 }, + { answer: 11 }, + { answer: 12 }, + { answer: 13 }, + { answer: 14 } + ]); }).then(function () { return model.ensureIndex({ answer: 1 }); }); + }); + after(function () { + return model.remove().then(function () { return model.dropIndexes(); }).then(function () { return core.close(); }); + }); + it("should exist", function () { + chai.expect(model.dropIndex).to.exist.and.be.a('function'); + }); it("should remove the specified index"); }); describe("dropIndexes", function () { - it("should exist"); + var model = new Iridium.Model(core, Test, 'test', { id: false, answer: Number }); + before(function () { + return core.connect().then(function () { return model.remove(); }).then(function () { return model.insert([ + { answer: 10 }, + { answer: 11 }, + { answer: 12 }, + { answer: 13 }, + { answer: 14 } + ]); }).then(function () { return model.ensureIndex({ answer: 1 }); }); + }); + after(function () { + return model.remove().then(function () { return model.dropIndexes(); }).then(function () { return core.close(); }); + }); + it("should exist", function () { + chai.expect(model.dropIndexes).to.exist.and.be.a('function'); + }); it("should remove all non-_id indexes on the collection"); }); }); diff --git a/test/Model.js.map b/test/Model.js.map index e52c234..2122772 100644 --- a/test/Model.js.map +++ b/test/Model.js.map @@ -1 +1 @@ -{"version":3,"file":"Model.js","sourceRoot":"","sources":["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AC;YACH,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,cAAM,OAAA,KAAK,CAAC,MAAM,EAAE,EAAd,CAAc,CAAC,CAAC,IAAI,CAAC,cAAM,OAAA,KAAK,CAAC,MAAM,CAAC;gBACrE,EAAE,MAAM,EAAE,EAAE,EAAE;gBACd,EAAE,MAAM,EAAE,EAAE,EAAE;gBACd,EAAE,MAAM,EAAE,EAAE,EAAE;gBACd,EAAE,MAAM,EAAE,EAAE,EAAE;gBACd,EAAE,MAAM,EAAE,EAAE,EAAE;aACjB,CAAC,EAN0D,CAM1D,CAAC,CAAC,IAAI,CAAC,cAAM,OAAA,KAAK,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,EAAhC,CAAgC,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;QAEH,KAAK,CAAC;YACF,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,cAAM,OAAA,KAAK,CAAC,WAAW,EAAE,EAAnB,CAAmB,CAAC,CAAC,IAAI,CAAC,cAAM,OAAA,IAAI,CAAC,KAAK,EAAE,EAAZ,CAAY,CAAC,CAAC;QACnF,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,cAAc,EAAC;YACd,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,qDAAqD,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/test/Model.ts b/test/Model.ts index d10b8fa..1c85d2d 100644 --- a/test/Model.ts +++ b/test/Model.ts @@ -317,17 +317,72 @@ describe("Model",() => { }); describe("ensureIndexes",() => { - it("should exist"); + var model = new Iridium.Model(core, Test, 'test', { id: false, answer: Number }); + + before(() => { + return core.connect().then(() => model.remove()).then(() => model.insert([ + { answer: 10 }, + { answer: 11 }, + { answer: 12 }, + { answer: 13 }, + { answer: 14 } + ])); + }); + + after(() => { + return model.remove().then(() => model.dropIndexes()).then(() => core.close()); + }); + + it("should exist",() => { + chai.expect(model.ensureIndices).to.exist.and.be.a('function'); + }); + it("should configure all indexes defined in the model's options"); }); describe("dropIndex",() => { - it("should exist"); + var model = new Iridium.Model(core, Test, 'test', { id: false, answer: Number }); + + before(() => { + return core.connect().then(() => model.remove()).then(() => model.insert([ + { answer: 10 }, + { answer: 11 }, + { answer: 12 }, + { answer: 13 }, + { answer: 14 } + ])).then(() => model.ensureIndex({ answer: 1 })); + }); + + after(() => { + return model.remove().then(() => model.dropIndexes()).then(() => core.close()); + }); + + it("should exist",() => { + chai.expect(model.dropIndex).to.exist.and.be.a('function'); + }); it("should remove the specified index"); }); describe("dropIndexes",() => { - it("should exist"); + var model = new Iridium.Model(core, Test, 'test', { id: false, answer: Number }); + + before(() => { + return core.connect().then(() => model.remove()).then(() => model.insert([ + { answer: 10 }, + { answer: 11 }, + { answer: 12 }, + { answer: 13 }, + { answer: 14 } + ])).then(() => model.ensureIndex({ answer: 1 })); + }); + + after(() => { + return model.remove().then(() => model.dropIndexes()).then(() => core.close()); + }); + + it("should exist",() => { + chai.expect(model.dropIndexes).to.exist.and.be.a('function'); + }); it("should remove all non-_id indexes on the collection"); }); }); \ No newline at end of file