Fix tests

This commit is contained in:
Javier Goizueta
2018-06-12 12:04:13 +02:00
parent 660c1777e3
commit 251570b638
+2 -2
View File
@@ -9,7 +9,7 @@ describe('date-wrapping', () => {
describe('when a map instantiation has one single layer', () => {
describe('and the layer has the "dates_as_numbers" option enabled', () => {
beforeEach(() => {
const mapConfig = mapConfigFactory.getVectorMapConfig({ dates_as_numbers: true });
const mapConfig = mapConfigFactory.getVectorMapConfig({ layerOptions: [{ dates_as_numbers: true }]});
testClient = new TestClient(mapConfig);
});
@@ -53,7 +53,7 @@ describe('date-wrapping', () => {
describe('and the layer has the "dates_as_numbers" option disabled', () => {
beforeEach(() => {
const mapConfig = mapConfigFactory.getVectorMapConfig({ dates_as_numbers: false });
const mapConfig = mapConfigFactory.getVectorMapConfig({ layerOptions: [{ dates_as_numbers: false }]});
testClient = new TestClient(mapConfig);
});