mirror of
https://github.com/apache/superset.git
synced 2026-04-17 07:05:04 +00:00
* [lint] turn no-undef back on, set browser, cypress, and mocha env's, and fix issues * [lint] fix undefined var in TimeTable.jsx
14 lines
417 B
JavaScript
14 lines
417 B
JavaScript
import { expect } from 'chai';
|
|
|
|
import getDashboardUrl from '../../../../src/dashboard/util/getDashboardUrl';
|
|
|
|
describe('getChartIdsFromLayout', () => {
|
|
it('should encode filters', () => {
|
|
const filters = { 35: { key: ['value'] } };
|
|
const url = getDashboardUrl('path', filters);
|
|
expect(url).to.equal(
|
|
'path?preselect_filters=%7B%2235%22%3A%7B%22key%22%3A%5B%22value%22%5D%7D%7D',
|
|
);
|
|
});
|
|
});
|