Skip to content

Commit 0f1377a

Browse files
Remove deprecated tests for ISO date string serialization in OData queries. These tests were previously verifying the handling of DateTimeOffset and DateTime fieldTypes, which have been refactored in recent updates. This cleanup aligns with the ongoing enhancements to date handling in the OData implementation.
1 parent 9949021 commit 0f1377a

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

packages/devextreme/testing/tests/DevExpress.data/odataQuery.tests.js

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -930,48 +930,6 @@ QUnit.test('Values are converted according to \'fieldTypes\' property', function
930930
.always(done);
931931
});
932932

933-
QUnit.test('ISO date string serialized as date when fieldTypes indicate DateTimeOffset (v4)', function(assert) {
934-
assert.expect(1);
935-
936-
const done = assert.async();
937-
ajaxMock.setup({
938-
url: 'odata.org',
939-
callback: function(bag) { this.responseText = { value: [bag] }; }
940-
});
941-
942-
const iso = '1945-05-09T14:25:01.001Z';
943-
const expectedRe = /^date eq \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
944-
945-
QUERY('odata.org', { version: 4, fieldTypes: { date: 'DateTimeOffset' } })
946-
.filter(['date', '=', iso])
947-
.enumerate()
948-
.fail(function() { assert.ok(false, MUST_NOT_REACH_MESSAGE); })
949-
.done(function(r) { assert.ok(expectedRe.test(r[0].data['$filter'])); })
950-
.always(done);
951-
});
952-
953-
QUnit.test('ISO date string serialized as date when fieldTypes indicate DateTime (v2)', function(assert) {
954-
assert.expect(1);
955-
956-
const done = assert.async();
957-
ajaxMock.setup({
958-
url: 'odata.org',
959-
callback: function(bag) { this.responseText = { value: [bag] }; }
960-
});
961-
962-
const iso = '1945-05-09T14:25:01.001Z';
963-
const expectedRe = /^date eq datetime'\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}'$/;
964-
965-
QUERY('odata.org', {
966-
version: 2,
967-
fieldTypes: { date: 'DateTime' }
968-
})
969-
.filter(['date', '=', iso])
970-
.enumerate()
971-
.fail(function() { assert.ok(false, MUST_NOT_REACH_MESSAGE); })
972-
.done(function(r) { assert.ok(expectedRe.test(r[0].data['$filter'])); })
973-
.always(done);
974-
});
975933

976934
QUnit.test('ISO date string remains string when fieldTypes indicate String (v2/v4)', function(assert) {
977935
assert.expect(2);

0 commit comments

Comments
 (0)