Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jannyHou committed Nov 14, 2019
1 parent 60dff13 commit 175ef0d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/partition.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('cloudant - partitioned db', () => {
db.automigrate(done);
});

it('default - create global index for property', (done) => {
it('property level - create global index by default', (done) => {
Product = db.define('Product', {
prodName: {type: String, index: true},
desc: {type: String},
Expand All @@ -55,7 +55,7 @@ describe('cloudant - partitioned db', () => {
});
});

it('default - create global index for index entry', (done) => {
it('index entry - create global index by default', (done) => {
Product = db.define('Product', {
prodName: {type: String},
desc: {type: String},
Expand Down Expand Up @@ -90,7 +90,9 @@ describe('cloudant - partitioned db', () => {
});
});

it('configured true - create partitioned index for index entry', (done) => {
it('index entry - ' +
'create partitioned index for when `partitioned` is configured as true',
(done) => {
Product = db.define('Product', {
prodName: {type: String},
desc: {type: String},
Expand Down Expand Up @@ -126,7 +128,9 @@ describe('cloudant - partitioned db', () => {
});
});

it('configured false - create global index for index entry', (done) => {
it('index entry - ' +
'create global index for when `partitioned` is configured as false',
(done) => {
Product = db.define('Product', {
prodName: {type: String},
desc: {type: String},
Expand Down

0 comments on commit 175ef0d

Please sign in to comment.