Skip to content

Commit

Permalink
test: mapTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
lvisei committed May 27, 2024
1 parent 5e0a102 commit 4eff1e0
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions packages/component/__tests__/mapTheme.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,7 @@ describe('mapTheme', () => {
scene.addControl(control);

const options = control.getOptions().options;
expect(options.length).toBeGreaterThan(0);
expect(control.getSelectValue()).toEqual('mapbox://styles/mapbox/streets-v11');

const optionList = (control.getPopper().getContent() as HTMLDivElement).querySelectorAll(
'.l7-select-control-item',
) as unknown as HTMLDivElement[];
optionList[1].click();

// expect(control.getSelectValue()).toEqual(
// 'mapbox://styles/zcxduo/ck2ypyb1r3q9o1co1766dex29',
// );
expect(options.length).toEqual(0);
expect(control.getSelectValue()).toEqual('normal');
});
});

0 comments on commit 4eff1e0

Please sign in to comment.