Organize tests

This commit is contained in:
Tim Schaub
2021-04-27 15:41:14 -07:00
parent 278e355795
commit 490cfabe91
599 changed files with 12374 additions and 1603 deletions

View File

@@ -0,0 +1,13 @@
import {readDateTime} from '../../../../../src/ol/format/xsd.js';
describe('ol/format/xsd', function () {
describe('readDateTime', function () {
it('can handle non-Zulu time zones', function () {
const node = document.createElement('time');
node.textContent = '2016-07-12T15:00:00+03:00';
expect(new Date(readDateTime(node) * 1000).toISOString()).to.eql(
'2016-07-12T12:00:00.000Z'
);
});
});
});