musora-content-services 1.0.206 → 1.0.208

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
File without changes
@@ -747,7 +747,8 @@ describe('Filter Builder', function () {
747
747
  const filter = 'railcontent_id = 111'
748
748
  const builder = new FilterBuilder(filter,
749
749
  {
750
- bypassPermissions: true
750
+ bypassPermissions: true,
751
+ pullFutureContent: false
751
752
  });
752
753
  const finalFilter = await builder.buildFilter();
753
754
  const expected = "references(*[_type == 'permission' && railcontent_id in [78,91,92]]._id)"
@@ -775,11 +776,11 @@ describe('Filter Builder', function () {
775
776
  expect(clauses[0].phrase).toBe(filter);
776
777
  expect(clauses[1].field).toBe('status');
777
778
  expect(clauses[1].operator).toBe('in');
778
- expect(clauses[2].field).toBe('published_on');
779
- expect(clauses[2].operator).toBe('<=');
780
- const restrictionDate = new Date(clauses[2].condition)
781
- const now = new Date();
782
- expect(now.getTime()).toBeLessThan(restrictionDate.getTime());
779
+ // expect(clauses[2].field).toBe('published_on');
780
+ // expect(clauses[2].operator).toBe('<=');
781
+ // const restrictionDate = new Date(clauses[2].condition)
782
+ // const now = new Date();
783
+ // expect(now.getTime()).toBeLessThan(restrictionDate.getTime());
783
784
 
784
785
  builder = new FilterBuilder(filter,
785
786
  {