Skip to content

Commit 97d0295

Browse files
committed
Fix integration test specificity
1 parent 0d55930 commit 97d0295

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/query/woqlQuery.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,7 @@ WOQLQuery.prototype.weekday = function (date, weekday) {
16891689
if (this.cursor['@type']) this.wrapCursorWithAnd();
16901690
this.cursor['@type'] = 'Weekday';
16911691
this.cursor.date = this.cleanDataValue(date);
1692-
this.cursor.weekday = this.cleanDataValue(weekday);
1692+
this.cursor.weekday = this.cleanDataValue(weekday, 'xsd:integer');
16931693
return this;
16941694
};
16951695

@@ -1705,7 +1705,7 @@ WOQLQuery.prototype.weekday_sunday_start = function (date, weekday) {
17051705
if (this.cursor['@type']) this.wrapCursorWithAnd();
17061706
this.cursor['@type'] = 'WeekdaySundayStart';
17071707
this.cursor.date = this.cleanDataValue(date);
1708-
this.cursor.weekday = this.cleanDataValue(weekday);
1708+
this.cursor.weekday = this.cleanDataValue(weekday, 'xsd:integer');
17091709
return this;
17101710
};
17111711

@@ -1722,8 +1722,8 @@ WOQLQuery.prototype.iso_week = function (date, year, week) {
17221722
if (this.cursor['@type']) this.wrapCursorWithAnd();
17231723
this.cursor['@type'] = 'IsoWeek';
17241724
this.cursor.date = this.cleanDataValue(date);
1725-
this.cursor.year = this.cleanDataValue(year);
1726-
this.cursor.week = this.cleanDataValue(week);
1725+
this.cursor.year = this.cleanDataValue(year, 'xsd:integer');
1726+
this.cursor.week = this.cleanDataValue(week, 'xsd:integer');
17271727
return this;
17281728
};
17291729

0 commit comments

Comments
 (0)