Skip to content

Commit e356123

Browse files
fix: corrected test prefix and content-type uid
1 parent 90eeeae commit e356123

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

test/entry/find.js

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ test('Taxonomies Endpoint: Get Entries With Taxonomy Terms and Also Matching Its
14981498
test('Taxonomies Endpoint: Get Entries With Taxonomy Terms Parent and Excluding the term itself ($above, level)', function(assert) {
14991499
let Query = Stack.Taxonomies().Query();
15001500
Query
1501-
.above('taxonomies.one', 'term_one')
1501+
.above('taxonomies.one', 'term_one_child')
15021502
.toJSON()
15031503
.find()
15041504
.then(entries => {
@@ -1512,8 +1512,8 @@ test('Taxonomies Endpoint: Get Entries With Taxonomy Terms Parent and Excluding
15121512
})
15131513

15141514
//Content Type end point
1515-
test('Taxonomies Endpoint: Get Entries With One Term', function(assert) {
1516-
let Query = Stack.ContentType('blog_post').Query();
1515+
test('CT Taxonomies Query: Get Entries With One Term', function(assert) {
1516+
let Query = Stack.ContentType('source').Query();
15171517
Query
15181518
.where('taxonomies.one', 'term_one')
15191519
.toJSON()
@@ -1523,13 +1523,13 @@ test('Taxonomies Endpoint: Get Entries With One Term', function(assert) {
15231523
assert.end();
15241524
}, err => {
15251525
console.error("error :", err);
1526-
assert.fail("Taxonomies Endpoint: Get Entries With One Term");
1526+
assert.fail("CT Taxonomies Query: Get Entries With One Term");
15271527
assert.end();
15281528
})
15291529
});
15301530

1531-
test('Taxonomies Endpoint: Get Entries With Any Term ($in)', function(assert) {
1532-
let Query = Stack.ContentType('blog_post').Query();
1531+
test('CT Taxonomies Query: Get Entries With Any Term ($in)', function(assert) {
1532+
let Query = Stack.ContentType('source').Query();
15331533
Query
15341534
.containedIn('taxonomies.one', ['term_one', 'term_two'])
15351535
.toJSON()
@@ -1539,15 +1539,15 @@ test('Taxonomies Endpoint: Get Entries With Any Term ($in)', function(assert) {
15391539
assert.end();
15401540
}, err => {
15411541
console.error("error :", err);
1542-
assert.fail("Taxonomies Endpoint: Get Entries With Any Term ($in)");
1542+
assert.fail("CT Taxonomies Query: Get Entries With Any Term ($in)");
15431543
assert.end();
15441544
})
15451545
})
15461546

1547-
test('Taxonomies Endpoint: Get Entries With Any Term ($or)', function(assert) {
1548-
let Query = Stack.ContentType('blog_post').Query();
1549-
let Query1 = Stack.ContentType('blog_post').Query().where('taxonomies.one', 'term_one');
1550-
let Query2 = Stack.ContentType('blog_post').Query().where('taxonomies.two', 'term_two');
1547+
test('CT Taxonomies Query: Get Entries With Any Term ($or)', function(assert) {
1548+
let Query = Stack.ContentType('source').Query();
1549+
let Query1 = Stack.ContentType('source').Query().where('taxonomies.one', 'term_one');
1550+
let Query2 = Stack.ContentType('source').Query().where('taxonomies.two', 'term_two');
15511551
Query
15521552
.or(Query1, Query2)
15531553
.toJSON()
@@ -1557,15 +1557,15 @@ test('Taxonomies Endpoint: Get Entries With Any Term ($or)', function(assert) {
15571557
assert.end();
15581558
}, err => {
15591559
console.error("error :", err);
1560-
assert.fail("Taxonomies Endpoint: Get Entries With Any Term ($or)");
1560+
assert.fail("CT Taxonomies Query: Get Entries With Any Term ($or)");
15611561
assert.end();
15621562
})
15631563
})
15641564

1565-
test('Taxonomies Endpoint: Get Entries With All Terms ($and)', function(assert) {
1566-
let Query1 = Stack.ContentType('blog_post').Query().where('taxonomies.one', 'term_one');
1567-
let Query2 = Stack.ContentType('blog_post').Query().where('taxonomies.two', 'term_two');
1568-
let Query = Stack.ContentType('blog_post').Query();
1565+
test('CT Taxonomies Query: Get Entries With All Terms ($and)', function(assert) {
1566+
let Query1 = Stack.ContentType('source').Query().where('taxonomies.one', 'term_one');
1567+
let Query2 = Stack.ContentType('source').Query().where('taxonomies.two', 'term_two');
1568+
let Query = Stack.ContentType('source').Query();
15691569
Query
15701570
.and(Query1, Query2)
15711571
.toJSON()
@@ -1575,13 +1575,13 @@ test('Taxonomies Endpoint: Get Entries With All Terms ($and)', function(assert)
15751575
assert.end();
15761576
}, err => {
15771577
console.error("error :", err);
1578-
assert.fail("Taxonomies Endpoint: Get Entries With All Terms ($and)");
1578+
assert.fail("CT Taxonomies Query: Get Entries With All Terms ($and)");
15791579
assert.end();
15801580
})
15811581
})
15821582

1583-
test('Taxonomies Endpoint: Get Entries With Any Taxonomy Terms ($exists)', function(assert) {
1584-
let Query = Stack.ContentType('blog_post').Query();
1583+
test('CT Taxonomies Query: Get Entries With Any Taxonomy Terms ($exists)', function(assert) {
1584+
let Query = Stack.ContentType('source').Query();
15851585
Query
15861586
.exists('taxonomies.one')
15871587
.toJSON()
@@ -1591,13 +1591,13 @@ test('Taxonomies Endpoint: Get Entries With Any Taxonomy Terms ($exists)', funct
15911591
assert.end();
15921592
}, err => {
15931593
console.error("error :", err);
1594-
assert.fail("Taxonomies Endpoint: Get Entries With Any Taxonomy Terms ($exists)");
1594+
assert.fail("CT Taxonomies Query: Get Entries With Any Taxonomy Terms ($exists)");
15951595
assert.end();
15961596
})
15971597
})
15981598

1599-
test('Taxonomies Endpoint: Get Entries With Taxonomy Terms and Also Matching Its Children Term ($eq_below, level)', function(assert) {
1600-
let Query = Stack.ContentType('blog_post').Query();
1599+
test('CT Taxonomies Query: Get Entries With Taxonomy Terms and Also Matching Its Children Term ($eq_below, level)', function(assert) {
1600+
let Query = Stack.ContentType('source').Query();
16011601
Query
16021602
.equalAndBelow('taxonomies.one', 'term_one')
16031603
.toJSON()
@@ -1607,13 +1607,13 @@ test('Taxonomies Endpoint: Get Entries With Taxonomy Terms and Also Matching Its
16071607
assert.end();
16081608
}, err => {
16091609
console.error("error :", err);
1610-
assert.fail("Taxonomies Endpoint: Get Entries With Taxonomy Terms and Also Matching Its Children Term ($eq_below, level)");
1610+
assert.fail("CT Taxonomies Query: Get Entries With Taxonomy Terms and Also Matching Its Children Term ($eq_below, level)");
16111611
assert.end();
16121612
})
16131613
})
16141614

1615-
test('Taxonomies Endpoint: Get Entries With Taxonomy Terms Children\'s and Excluding the term itself ($below, level)', function(assert) {
1616-
let Query = Stack.ContentType('blog_post').Query();
1615+
test('CT Taxonomies Query: Get Entries With Taxonomy Terms Children\'s and Excluding the term itself ($below, level)', function(assert) {
1616+
let Query = Stack.ContentType('source').Query();
16171617
Query
16181618
.below('taxonomies.one', 'term_one')
16191619
.toJSON()
@@ -1623,13 +1623,13 @@ test('Taxonomies Endpoint: Get Entries With Taxonomy Terms Children\'s and Exclu
16231623
assert.end();
16241624
}, err => {
16251625
console.error("error :", err);
1626-
assert.fail("Taxonomies Endpoint: Get Entries With Taxonomy Terms Children\'s and Excluding the term itself ($below, level)");
1626+
assert.fail("CT Taxonomies Query: Get Entries With Taxonomy Terms Children\'s and Excluding the term itself ($below, level)");
16271627
assert.end();
16281628
})
16291629
})
16301630

1631-
test('Taxonomies Endpoint: Get Entries With Taxonomy Terms and Also Matching Its Parent Term ($eq_above, level)', function(assert) {
1632-
let Query = Stack.ContentType('blog_post').Query();
1631+
test('CT Taxonomies Query: Get Entries With Taxonomy Terms and Also Matching Its Parent Term ($eq_above, level)', function(assert) {
1632+
let Query = Stack.ContentType('source').Query();
16331633
Query
16341634
.equalAndAbove('taxonomies.one', 'term_one')
16351635
.toJSON()
@@ -1639,23 +1639,23 @@ test('Taxonomies Endpoint: Get Entries With Taxonomy Terms and Also Matching Its
16391639
assert.end();
16401640
}, err => {
16411641
console.error("error :", err);
1642-
assert.fail("Taxonomies Endpoint: Get Entries With Taxonomy Terms and Also Matching Its Parent Term ($eq_above, level)");
1642+
assert.fail("CT Taxonomies Query: Get Entries With Taxonomy Terms and Also Matching Its Parent Term ($eq_above, level)");
16431643
assert.end();
16441644
})
16451645
})
16461646

1647-
test('Taxonomies Endpoint: Get Entries With Taxonomy Terms Parent and Excluding the term itself ($above, level)', function(assert) {
1648-
let Query = Stack.ContentType('blog_post').Query();
1647+
test('CT Taxonomies Query: Get Entries With Taxonomy Terms Parent and Excluding the term itself ($above, level)', function(assert) {
1648+
let Query = Stack.ContentType('source').Query();
16491649
Query
1650-
.above('taxonomies.one', 'term_one')
1650+
.above('taxonomies.one', 'term_one_child')
16511651
.toJSON()
16521652
.find()
16531653
.then(entries => {
16541654
assert.ok(entries[0].length, 'Entries present in the resultset');
16551655
assert.end();
16561656
}, err => {
16571657
console.error("error :", err);
1658-
assert.fail("Taxonomies Endpoint: Get Entries With Taxonomy Terms Parent and Excluding the term itself ($above, level)");
1658+
assert.fail("CT Taxonomies Query: Get Entries With Taxonomy Terms Parent and Excluding the term itself ($above, level)");
16591659
assert.end();
16601660
})
16611661
})

0 commit comments

Comments
 (0)