mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Added timer to explore v2 and share it with sqllab (#1802)
* Added timer to explore v2 and share it with sqllab * Fixed js tests * Add timer to initial load * Make timer smaller * nits
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
import React from 'react';
|
||||
import Timer from '../../../javascripts/SqlLab/components/Timer';
|
||||
import Timer from '../../../javascripts/components/Timer';
|
||||
import { shallow } from 'enzyme';
|
||||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
import { queries } from './fixtures';
|
||||
import { now } from '../../../javascripts/modules/dates';
|
||||
|
||||
|
||||
describe('Timer', () => {
|
||||
const mockedProps = {
|
||||
query: queries[0],
|
||||
startTime: now(),
|
||||
endTime: null,
|
||||
isRunning: true,
|
||||
state: 'warning',
|
||||
};
|
||||
it('renders', () => {
|
||||
expect(React.isValidElement(<Timer />)).to.equal(true);
|
||||
|
||||
Reference in New Issue
Block a user